support_custom_tags attribute is not present if libtiff is not supported

This commit is contained in:
Andrew Murray 2024-04-22 18:30:00 +10:00
parent 492c726350
commit c7bb152ed9

View File

@ -741,7 +741,7 @@ class TestFileLibTiff(LibTiffTestCase):
pytest.param( pytest.param(
True, True,
marks=pytest.mark.skipif( marks=pytest.mark.skipif(
not Image.core.libtiff_support_custom_tags, not getattr(Image.core, "libtiff_support_custom_tags", False),
reason="Custom tags not supported by older libtiff", reason="Custom tags not supported by older libtiff",
), ),
), ),