From 16730aaca266fc7bf6b5ddb75751dda4111bb270 Mon Sep 17 00:00:00 2001 From: orlnub123 Date: Tue, 4 Feb 2020 22:06:07 +0000 Subject: [PATCH] Add test against upscaling --- Tests/test_image_thumbnail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/test_image_thumbnail.py b/Tests/test_image_thumbnail.py index 1c007b139e0..0e165a12c67 100644 --- a/Tests/test_image_thumbnail.py +++ b/Tests/test_image_thumbnail.py @@ -34,9 +34,9 @@ def test_aspect(): im.thumbnail((100, 100)) assert im.size == (100, 50) - im = Image.new("L", (256, 128)) - im.thumbnail((100, 50)) - assert im.size == (100, 50) + im = Image.new("L", (64, 64)) + im.thumbnail((100, 100)) + assert im.size == (64, 64) im = Image.new("L", (128, 128)) im.thumbnail((100, 100))