Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused image open #8649

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Removed unused image open #8649

merged 1 commit into from
Jan 8, 2025

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