From 9dcfdcbcac9e63c231b1468156645029961bac5b Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Thu, 9 Oct 2025 16:38:36 +0530 Subject: [PATCH] xfail more incorrect transformer imports. --- tests/pipelines/test_pipelines.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pipelines/test_pipelines.py b/tests/pipelines/test_pipelines.py index 5b86423553c5..2db9c6635010 100644 --- a/tests/pipelines/test_pipelines.py +++ b/tests/pipelines/test_pipelines.py @@ -600,6 +600,7 @@ def test_download_legacy_variants_with_sharded_ckpts_raises_warning(self): ) assert deprecated_warning_msg in str(cap_logger), "Deprecation warning not found in logs" + @pytest.mark.xfail(condition=is_transformers_version(">", "4.56.2"), reason="Some import error", strict=True) def test_download_safetensors_only_variant_exists_for_model(self): variant = None use_safetensors = True @@ -658,6 +659,7 @@ def test_download_bin_only_variant_exists_for_model(self): # https://huggingface.co/hf-internal-testing/stable-diffusion-broken-variants/tree/main/unet assert len(files) == 15, f"We should only download 15 files, not {len(files)}" + @pytest.mark.xfail(condition=is_transformers_version(">", "4.56.2"), reason="Some import error", strict=True) def test_download_safetensors_variant_does_not_exist_for_model(self): variant = "no_ema" use_safetensors = True @@ -1890,6 +1892,7 @@ def test_dduf_raises_error_with_connected_pipeline(self): "DDUF/tiny-flux-dev-pipe-dduf", dduf_file="fluxpipeline.dduf", load_connected_pipeline=True ) + @pytest.mark.xfail(condition=is_transformers_version(">", "4.56.2"), reason="Some import error", strict=True) def test_wrong_model(self): tokenizer = CLIPTokenizer.from_pretrained("hf-internal-testing/tiny-random-clip") with self.assertRaises(ValueError) as error_context: