Skip to content

Commit 4bd648f

Browse files
Yay295radarhere
andauthored
test 1x1 image instead of 2x2
Co-authored-by: Andrew Murray <[email protected]>
1 parent 51beaca commit 4bd648f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/test_image.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,12 +705,8 @@ def test_pixels_from_new_image_by_color(self, mode: ImageModeInfo) -> None:
705705
else:
706706
color = tuple(range(mode.num_bands))
707707

708-
im = Image.new(mode.name, (2, 2), color=color)
709-
708+
im = Image.new(mode.name, (1, 1), color)
710709
assert im.getpixel((0, 0)) == color
711-
assert im.getpixel((0, 1)) == color
712-
assert im.getpixel((1, 0)) == color
713-
assert im.getpixel((1, 1)) == color
714710

715711
@pytest.mark.parametrize(
716712
"mode, color",

0 commit comments

Comments
 (0)