Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 29, 2020
1 parent 6d8f2f9 commit d00b929
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/test_file_jpeg2k.py
Expand Up @@ -135,10 +135,8 @@ def test_reduce():
im.load()
assert im.size == (160, 120)

try:
im.thumbnail((40, 40))
except ValueError as e:
assert str(e) == "box can't exceed original image size"
im.thumbnail((40, 40))
assert im.size == (40, 30)


def test_layers_type(tmp_path):
Expand Down

0 comments on commit d00b929

Please sign in to comment.