Skip to content

Commit

Permalink
test 1x1 image instead of 2x2
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
Yay295 and radarhere committed Apr 1, 2024
1 parent 51beaca commit 4bd648f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4bd648f

Please sign in to comment.