@@ -256,19 +256,7 @@ def test_additional_metadata(
256256
257257 im .save (out , tiffinfo = new_ifd )
258258
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 ))
272260 def test_custom_metadata (
273261 self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path , libtiff : bool
274262 ) -> None :
@@ -724,8 +712,7 @@ def test_exif_ifd(self) -> None:
724712
725713 with Image .open (out ) as reloaded :
726714 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
729716
730717 def test_crashing_metadata (
731718 self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path
@@ -777,19 +764,7 @@ def test_read_icc(self, monkeypatch: pytest.MonkeyPatch) -> None:
777764 assert icc_libtiff is not None
778765 assert icc == icc_libtiff
779766
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 ))
793768 def test_write_icc (
794769 self , monkeypatch : pytest .MonkeyPatch , tmp_path : Path , libtiff : bool
795770 ) -> None :
0 commit comments