Skip to content

Commit

Permalink
Fix test_truncated_end_chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
lajiyuan committed Jan 16, 2024
1 parent 6c55dff commit 7849e77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/test_file_png.py
Expand Up @@ -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
Expand Down

0 comments on commit 7849e77

Please sign in to comment.