Skip to content

Commit 6648995

Browse files
committed
fix xfail condition.
1 parent 366aa2f commit 6648995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pipelines/test_pipelines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ def test_pipe_same_device_id_offload(self):
18191819

18201820
@parameterized.expand([torch.float32, torch.float16])
18211821
@pytest.mark.xfail(
1822-
condition=is_hf_hub_version("<", "0.26.5") and is_transformers_version("<", "4.47.1"),
1822+
condition=is_hf_hub_version("<", "0.26.5") or is_transformers_version("<", "4.47.1"),
18231823
reason="Test requires hf hub and transformers latests",
18241824
strict=True,
18251825
)
@@ -1840,7 +1840,7 @@ def test_load_dduf_from_hub(self, dtype):
18401840
self.assertTrue(np.allclose(out_1, out_2, atol=1e-4, rtol=1e-4))
18411841

18421842
@pytest.mark.xfail(
1843-
condition=is_hf_hub_version("<", "0.26.5") and is_transformers_version("<", "4.47.1"),
1843+
condition=is_hf_hub_version("<", "0.26.5") or is_transformers_version("<", "4.47.1"),
18441844
reason="Test requires hf hub and transformers latests",
18451845
strict=True,
18461846
)

0 commit comments

Comments
 (0)