mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
[Tests] fix condition argument in xfail. (#10099)
* fix condition argument in xfail. * revert init changes.
This commit is contained in:
@@ -129,7 +129,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
|
||||
|
||||
@skip_mps
|
||||
@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.",
|
||||
strict=True,
|
||||
)
|
||||
|
||||
@@ -108,7 +108,7 @@ class MochiLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
|
||||
return noise, input_ids, pipeline_inputs
|
||||
|
||||
@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.",
|
||||
strict=True,
|
||||
)
|
||||
|
||||
@@ -1513,7 +1513,7 @@ class PeftLoraLoaderMixinTests:
|
||||
|
||||
@skip_mps
|
||||
@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.",
|
||||
strict=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user