Removed unused image open by radarhere · Pull Request #8649 · python-pillow/Pillow

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")