diff --git a/tests/lora/test_lora_layers_cogvideox.py b/tests/lora/test_lora_layers_cogvideox.py index 623b06621d..15f8ebf450 100644 --- a/tests/lora/test_lora_layers_cogvideox.py +++ b/tests/lora/test_lora_layers_cogvideox.py @@ -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, ) diff --git a/tests/lora/test_lora_layers_mochi.py b/tests/lora/test_lora_layers_mochi.py index 910b126c14..0a07e3d096 100644 --- a/tests/lora/test_lora_layers_mochi.py +++ b/tests/lora/test_lora_layers_mochi.py @@ -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, ) diff --git a/tests/lora/utils.py b/tests/lora/utils.py index d8dc86d570..474c311505 100644 --- a/tests/lora/utils.py +++ b/tests/lora/utils.py @@ -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, )