Skip to content

Conversation

@radarhere
Copy link
Member

with Image.open(io.BytesIO(data)) as im:
with Image.open("Tests/images/hopper_mask.png") as expected:
assert im.mode == "1"
# 32 bpp

The result of opening hopper_mask.png is not used here, so it can be removed.

You might think that we are testing just opening the image, but that has already been done earlier in the file.

assert_image_equal_tofile(im, "Tests/images/hopper_mask.png")

@hugovk hugovk merged commit aaff3f1 into python-pillow:main Jan 8, 2025
49 checks passed
@radarhere radarhere deleted the ico branch January 8, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants