Remove redundant im.load() in tests

This commit is contained in:
scaramallion 2021-05-16 12:26:24 +10:00 committed by Hugo van Kemenade
parent 462e3fdaa5
commit b5a59d8860

View File

@ -271,7 +271,6 @@ def test_mct():
test_card.save(out, "JPEG2000", mct=val, no_jp2=True) test_card.save(out, "JPEG2000", mct=val, no_jp2=True)
out.seek(0) out.seek(0)
with Image.open(out) as im: with Image.open(out) as im:
im.load()
assert_image_similar(im, test_card, 1.0e-3) assert_image_similar(im, test_card, 1.0e-3)
assert out.getvalue()[59] == val assert out.getvalue()[59] == val
@ -283,7 +282,6 @@ def test_mct():
out.seek(0) out.seek(0)
with Image.open(out) as im: with Image.open(out) as im:
im.load()
assert_image_similar(im, jp2, 1.0e-3) assert_image_similar(im, jp2, 1.0e-3)
assert out.getvalue()[53] == 0 assert out.getvalue()[53] == 0