diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py index 0884ddcc35d..74b17da4732 100644 --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -786,6 +786,7 @@ def test_truncated_end_chunk(self): ImageFile.LOAD_TRUNCATED_IMAGES = True try: with Image.open("Tests/images/truncated_end_chunk.png") as im: + im.load() assert_image_equal_tofile(im, "Tests/images/hopper.png") finally: ImageFile.LOAD_TRUNCATED_IMAGES = False