Skip test_realloc_overflow unless libtiff 4.0.4 or higher

This commit is contained in:
Andrew Murray 2022-05-15 16:15:29 +10:00 committed by Hugo van Kemenade
parent 43e2ee0433
commit 1a286627b4

View File

@ -18,6 +18,7 @@ from .helper import (
hopper,
mark_if_feature_version,
skip_unless_feature,
skip_unless_feature_version,
)
@ -991,6 +992,7 @@ class TestFileLibTiff(LibTiffTestCase):
with Image.open(out) as im:
im.load()
@skip_unless_feature_version("libtiff", "4.0.4")
def test_realloc_overflow(self):
TiffImagePlugin.READ_LIBTIFF = True
with Image.open("Tests/images/tiff_overflow_rows_per_strip.tif") as im: