Skip to content

Commit

Permalink
Merge pull request #6229 from radarhere/libtiff
Browse files Browse the repository at this point in the history
Skip tests unless libtiff is available
  • Loading branch information
hugovk committed Apr 20, 2022
2 parents acc0fa0 + 0374d61 commit 2122489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/test_image_resize.py
Expand Up @@ -12,6 +12,7 @@
assert_image_equal_tofile,
assert_image_similar,
hopper,
skip_unless_feature,
)


Expand Down Expand Up @@ -264,6 +265,7 @@ def resize(mode, size):
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
Expand Down
2 changes: 2 additions & 0 deletions Tests/test_image_thumbnail.py
Expand Up @@ -7,6 +7,7 @@
assert_image_similar,
fromstring,
hopper,
skip_unless_feature,
tostring,
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2122489

Please sign in to comment.