Merge pull request #8648 from radarhere/png_text

This commit is contained in:
Hugo van Kemenade 2025-01-08 18:45:54 +02:00 committed by GitHub
commit e9ab468277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -618,7 +618,7 @@ class TestFilePng:
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