@@ -582,7 +582,7 @@ def test_download_variants_with_sharded_checkpoints(self):
582582 assert not any (f .endswith (unexpected_ext ) for f in files )
583583 assert all (variant in f for f in model_files if f .endswith (model_ext ) and variant is not None )
584584
585- @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = True )
585+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
586586 def test_download_legacy_variants_with_sharded_ckpts_raises_warning (self ):
587587 repo_id = "hf-internal-testing/tiny-stable-diffusion-pipe-variants-all-kinds"
588588 logger = logging .get_logger ("diffusers.pipelines.pipeline_utils" )
@@ -629,6 +629,7 @@ def test_download_safetensors_only_variant_exists_for_model(self):
629629 # https://huggingface.co/hf-internal-testing/stable-diffusion-broken-variants/tree/main/unet
630630 assert len (files ) == 15 , f"We should only download 15 files, not { len (files )} "
631631
632+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
632633 def test_download_bin_only_variant_exists_for_model (self ):
633634 variant = None
634635 use_safetensors = False
@@ -674,6 +675,7 @@ def test_download_safetensors_variant_does_not_exist_for_model(self):
674675
675676 assert "Could not find the necessary `safetensors` weights" in str (error_context .exception )
676677
678+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
677679 def test_download_bin_variant_does_not_exist_for_model (self ):
678680 variant = "no_ema"
679681 use_safetensors = False
@@ -689,7 +691,7 @@ def test_download_bin_variant_does_not_exist_for_model(self):
689691 )
690692 assert "Error no file name" in str (error_context .exception )
691693
692- @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = True )
694+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
693695 def test_local_save_load_index (self ):
694696 prompt = "hello"
695697 for variant in [None , "fp16" ]:
@@ -1584,7 +1586,7 @@ def test_save_safe_serialization(self):
15841586 assert pipeline .scheduler is not None
15851587 assert pipeline .feature_extractor is not None
15861588
1587- @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = True )
1589+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
15881590 def test_no_pytorch_download_when_doing_safetensors (self ):
15891591 # by default we don't download
15901592 with tempfile .TemporaryDirectory () as tmpdirname :
@@ -1604,7 +1606,7 @@ def test_no_pytorch_download_when_doing_safetensors(self):
16041606 # pytorch does not
16051607 assert not os .path .exists (os .path .join (path , "diffusion_pytorch_model.bin" ))
16061608
1607- @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = True )
1609+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
16081610 def test_no_safetensors_download_when_doing_pytorch (self ):
16091611 use_safetensors = False
16101612
@@ -1890,6 +1892,7 @@ def test_dduf_raises_error_with_connected_pipeline(self):
18901892 "DDUF/tiny-flux-dev-pipe-dduf" , dduf_file = "fluxpipeline.dduf" , load_connected_pipeline = True
18911893 )
18921894
1895+ @pytest .mark .xfail (condition = is_transformers_version (">" , "4.56.2" ), reason = "Some import error" , strict = False )
18931896 def test_wrong_model (self ):
18941897 tokenizer = CLIPTokenizer .from_pretrained ("hf-internal-testing/tiny-random-clip" )
18951898 with self .assertRaises (ValueError ) as error_context :
0 commit comments