mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 11:35:52 +03:00
Updated test
This commit is contained in:
parent
6d8f2f95db
commit
d00b929651
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user