mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Add test against upscaling
This commit is contained in:
parent
e226e4ed64
commit
6d3c7d6941
|
@ -34,9 +34,9 @@ def test_aspect():
|
||||||
im.thumbnail((100, 100))
|
im.thumbnail((100, 100))
|
||||||
assert im.size == (100, 50)
|
assert im.size == (100, 50)
|
||||||
|
|
||||||
im = Image.new("L", (256, 128))
|
im = Image.new("L", (64, 64))
|
||||||
im.thumbnail((100, 50))
|
im.thumbnail((100, 100))
|
||||||
assert im.size == (100, 50)
|
assert im.size == (64, 64)
|
||||||
|
|
||||||
im = Image.new("L", (128, 128))
|
im = Image.new("L", (128, 128))
|
||||||
im.thumbnail((100, 100))
|
im.thumbnail((100, 100))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user