We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388a3f6 commit 9d8851cCopy full SHA for 9d8851c
Tests/test_file_png.py
@@ -777,18 +777,17 @@ class MyStdOut:
777
mystdout = mystdout.buffer
778
with Image.open(mystdout) as reloaded:
779
assert_image_equal_tofile(reloaded, TEST_PNG_FILE)
780
-
+
781
def test_end_truncated_filed(self):
782
ImageFile.LOAD_TRUNCATED_IMAGES = True
783
try:
784
- img = Image.open("Tests/images/end_trunc_file.png")
+ img = Image.open("Tests/images/end_trunc_file.png")
785
img.load()
786
assert img is not None
787
finally:
788
ImageFile.LOAD_TRUNCATED_IMAGES = False
789
790
791
792
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
793
@skip_unless_feature("zlib")
794
class TestTruncatedPngPLeaks(PillowLeakTestCase):
0 commit comments