@@ -256,19 +256,7 @@ def test_additional_metadata(
256
256
257
257
im .save (out , tiffinfo = new_ifd )
258
258
259
- @pytest .mark .parametrize (
260
- "libtiff" ,
261
- (
262
- pytest .param (
263
- True ,
264
- marks = pytest .mark .skipif (
265
- not getattr (Image .core , "libtiff_support_custom_tags" , False ),
266
- reason = "Custom tags not supported by older libtiff" ,
267
- ),
268
- ),
269
- False ,
270
- ),
271
- )
259
+ @pytest .mark .parametrize ("libtiff" , (True , False ))
272
260
def test_custom_metadata (
273
261
self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path , libtiff : bool
274
262
) -> None :
@@ -724,8 +712,7 @@ def test_exif_ifd(self) -> None:
724
712
725
713
with Image .open (out ) as reloaded :
726
714
assert isinstance (reloaded , TiffImagePlugin .TiffImageFile )
727
- if Image .core .libtiff_support_custom_tags :
728
- assert reloaded .tag_v2 [34665 ] == 125456
715
+ assert reloaded .tag_v2 [34665 ] == 125456
729
716
730
717
def test_crashing_metadata (
731
718
self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path
@@ -777,19 +764,7 @@ def test_read_icc(self, monkeypatch: pytest.MonkeyPatch) -> None:
777
764
assert icc_libtiff is not None
778
765
assert icc == icc_libtiff
779
766
780
- @pytest .mark .parametrize (
781
- "libtiff" ,
782
- (
783
- pytest .param (
784
- True ,
785
- marks = pytest .mark .skipif (
786
- not getattr (Image .core , "libtiff_support_custom_tags" , False ),
787
- reason = "Custom tags not supported by older libtiff" ,
788
- ),
789
- ),
790
- False ,
791
- ),
792
- )
767
+ @pytest .mark .parametrize ("libtiff" , (True , False ))
793
768
def test_write_icc (
794
769
self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path , libtiff : bool
795
770
) -> None :
0 commit comments