Skip tests unless libtiff is available

This commit is contained in:
Andrew Murray 2022-04-20 11:05:12 +10:00
parent acc0fa0d79
commit 0374d6190b
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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