Removed unused image open by radarhere · Pull Request #8649 · python-pillow/Pillow
Lines 255 to 259 in aa0f412
| 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.
Line 32 in aa0f412
| assert_image_equal_tofile(im, "Tests/images/hopper_mask.png") |