Skip to content

Commit

Permalink
Merge pull request #8648 from radarhere/png_text
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 8, 2025
2 parents 5654c86 + d626e6a commit e9ab468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/test_file_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def test_textual_chunks_after_idat(self) -> None:
with Image.open("Tests/images/truncated_image.png") as im:
# The file is truncated
with pytest.raises(OSError):
im.text()
im.text
ImageFile.LOAD_TRUNCATED_IMAGES = True
assert isinstance(im.text, dict)
ImageFile.LOAD_TRUNCATED_IMAGES = False
Expand Down

0 comments on commit e9ab468

Please sign in to comment.