diff --git a/Tests/test_image_resize.py b/Tests/test_image_resize.py index 6961afa60..8347fabb9 100644 --- a/Tests/test_image_resize.py +++ b/Tests/test_image_resize.py @@ -12,6 +12,7 @@ from .helper import ( assert_image_equal_tofile, assert_image_similar, hopper, + skip_unless_feature, ) @@ -264,6 +265,7 @@ class TestImageResize: with pytest.raises(ValueError): im.resize((10, 10), "unknown") + @skip_unless_feature("libtiff") def test_load_first(self): # load() may change the size of the image # Test that resize() is calling it before getting the size diff --git a/Tests/test_image_thumbnail.py b/Tests/test_image_thumbnail.py index 858db9a0a..20cc101ed 100644 --- a/Tests/test_image_thumbnail.py +++ b/Tests/test_image_thumbnail.py @@ -7,6 +7,7 @@ from .helper import ( assert_image_similar, fromstring, hopper, + skip_unless_feature, tostring, ) @@ -88,6 +89,7 @@ def test_no_resize(): assert im.size == (64, 64) +@skip_unless_feature("libtiff") def test_load_first(): # load() may change the size of the image # Test that thumbnail() is calling it before performing size calculations