From 7849e7718c87c0242a5f8ef2c2537d210f41536f Mon Sep 17 00:00:00 2001 From: FangFuxin <38530078+lajiyuan@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:07:48 +0000 Subject: [PATCH] Fix test_truncated_end_chunk --- Tests/test_file_png.py | 1 + 1 file changed, 1 insertion(+) 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