Updated test

This commit is contained in:
Andrew Murray 2020-03-29 16:29:34 +11:00
parent 6d8f2f95db
commit d00b929651

View File

@ -135,10 +135,8 @@ def test_reduce():
im.load() im.load()
assert im.size == (160, 120) assert im.size == (160, 120)
try: im.thumbnail((40, 40))
im.thumbnail((40, 40)) assert im.size == (40, 30)
except ValueError as e:
assert str(e) == "box can't exceed original image size"
def test_layers_type(tmp_path): def test_layers_type(tmp_path):