mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Skip tests unless libtiff is available
This commit is contained in:
parent
acc0fa0d79
commit
0374d6190b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user