From 4bd648f02d8ccbe88705d28b922a00badbdfaa0f Mon Sep 17 00:00:00 2001 From: Yay295 Date: Sun, 31 Mar 2024 20:51:30 -0500 Subject: [PATCH] test 1x1 image instead of 2x2 Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- Tests/test_image.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index d876d09b948..0de975d84e0 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -705,12 +705,8 @@ def test_pixels_from_new_image_by_color(self, mode: ImageModeInfo) -> None: else: color = tuple(range(mode.num_bands)) - im = Image.new(mode.name, (2, 2), color=color) - + im = Image.new(mode.name, (1, 1), color) assert im.getpixel((0, 0)) == color - assert im.getpixel((0, 1)) == color - assert im.getpixel((1, 0)) == color - assert im.getpixel((1, 1)) == color @pytest.mark.parametrize( "mode, color",