Merge pull request #6229 from radarhere/libtiff

Skip tests unless libtiff is available
This commit is contained in:
Hugo van Kemenade 2022-04-20 08:52:13 +03:00 committed by GitHub
commit 2122489db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ from .helper import (
assert_image_equal_tofile, assert_image_equal_tofile,
assert_image_similar, assert_image_similar,
hopper, hopper,
skip_unless_feature,
) )
@ -264,6 +265,7 @@ class TestImageResize:
with pytest.raises(ValueError): with pytest.raises(ValueError):
im.resize((10, 10), "unknown") im.resize((10, 10), "unknown")
@skip_unless_feature("libtiff")
def test_load_first(self): def test_load_first(self):
# load() may change the size of the image # load() may change the size of the image
# Test that resize() is calling it before getting the size # Test that resize() is calling it before getting the size

View File

@ -7,6 +7,7 @@ from .helper import (
assert_image_similar, assert_image_similar,
fromstring, fromstring,
hopper, hopper,
skip_unless_feature,
tostring, tostring,
) )
@ -88,6 +89,7 @@ def test_no_resize():
assert im.size == (64, 64) assert im.size == (64, 64)
@skip_unless_feature("libtiff")
def test_load_first(): def test_load_first():
# load() may change the size of the image # load() may change the size of the image
# Test that thumbnail() is calling it before performing size calculations # Test that thumbnail() is calling it before performing size calculations