From 1a286627b4fccda1ba30826c9cb2913a3860ec58 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 15 May 2022 16:15:29 +1000 Subject: [PATCH] Skip test_realloc_overflow unless libtiff 4.0.4 or higher --- Tests/test_file_libtiff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index d83c584b5da..588b9b70377 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -18,6 +18,7 @@ hopper, mark_if_feature_version, skip_unless_feature, + skip_unless_feature_version, ) @@ -991,6 +992,7 @@ def test_sampleformat_not_corrupted(self): 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: