Unverified Commit 40fc389c authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

[Tests] fix condition argument in xfail. (#10099)

* fix condition argument in xfail.

* revert init changes.
parent 98d0cd57
...@@ -129,7 +129,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests): ...@@ -129,7 +129,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
@skip_mps @skip_mps
@pytest.mark.xfail( @pytest.mark.xfail(
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"), condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.", reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
strict=True, strict=True,
) )
......
...@@ -108,7 +108,7 @@ class MochiLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests): ...@@ -108,7 +108,7 @@ class MochiLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
return noise, input_ids, pipeline_inputs return noise, input_ids, pipeline_inputs
@pytest.mark.xfail( @pytest.mark.xfail(
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"), condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.", reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
strict=True, strict=True,
) )
......
...@@ -1513,7 +1513,7 @@ class PeftLoraLoaderMixinTests: ...@@ -1513,7 +1513,7 @@ class PeftLoraLoaderMixinTests:
@skip_mps @skip_mps
@pytest.mark.xfail( @pytest.mark.xfail(
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"), condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.", reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
strict=True, strict=True,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment