Skip to content

Commit 40fc389

Browse files
authored
[Tests] fix condition argument in xfail. (#10099)
* fix condition argument in xfail. * revert init changes.
1 parent 98d0cd5 commit 40fc389

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/lora/test_lora_layers_cogvideox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_dummy_inputs(self, with_generator=True):
129129

130130
@skip_mps
131131
@pytest.mark.xfail(
132-
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
132+
condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
133133
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
134134
strict=True,
135135
)

tests/lora/test_lora_layers_mochi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_dummy_inputs(self, with_generator=True):
108108
return noise, input_ids, pipeline_inputs
109109

110110
@pytest.mark.xfail(
111-
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
111+
condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
112112
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
113113
strict=True,
114114
)

tests/lora/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ def test_simple_inference_with_text_denoiser_multi_adapter_weighted(self):
15131513

15141514
@skip_mps
15151515
@pytest.mark.xfail(
1516-
condtion=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
1516+
condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
15171517
reason="Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1.",
15181518
strict=True,
15191519
)

0 commit comments

Comments
 (0)