Skip to content

Commit aa0806f

Browse files
committed
fixing test errors
1 parent 47acd15 commit aa0806f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/test_pytorch_xla.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def is_oss_pt_xla_env():
8080
@pytest.mark.parametrize("instance_type", ["ml.p3.16xlarge", "ml.p3.2xlarge"])
8181
@pytest.mark.parametrize("cluster_size", [1, 4])
8282
class TestPyTorchXLARunner:
83-
@patch.object(PyTorchXLARunner, "_check_compatibility")
8483
def test_setup(self, cluster, cluster_size, master, instance_type, num_gpus, *patches):
84+
PyTorchXLARunner._check_compatibility = lambda x: None
8585
for rank, current_host in enumerate(cluster):
8686
print(f"Testing as host {rank+1}/{cluster_size}")
8787
runner = PyTorchXLARunner(

0 commit comments

Comments
 (0)