Update Tests/test_file_png.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
FangFuxin 2024-01-31 21:02:50 +08:00 committed by GitHub
parent 6c55dff8af
commit b8769d1cf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -778,7 +778,7 @@ class TestFilePng:
with Image.open(mystdout) as reloaded:
assert_image_equal_tofile(reloaded, TEST_PNG_FILE)
def test_truncated_end_chunk(self):
def test_truncated_end_chunk(self) -> None:
with Image.open("Tests/images/truncated_end_chunk.png") as im:
with pytest.raises(OSError):
im.load()