Skip to content

Commit 9d8851c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 388a3f6 commit 9d8851c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/test_file_png.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,18 +777,17 @@ class MyStdOut:
777777
mystdout = mystdout.buffer
778778
with Image.open(mystdout) as reloaded:
779779
assert_image_equal_tofile(reloaded, TEST_PNG_FILE)
780-
780+
781781
def test_end_truncated_filed(self):
782782
ImageFile.LOAD_TRUNCATED_IMAGES = True
783783
try:
784-
img = Image.open("Tests/images/end_trunc_file.png")
784+
img = Image.open("Tests/images/end_trunc_file.png")
785785
img.load()
786786
assert img is not None
787787
finally:
788788
ImageFile.LOAD_TRUNCATED_IMAGES = False
789789

790790

791-
792791
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
793792
@skip_unless_feature("zlib")
794793
class TestTruncatedPngPLeaks(PillowLeakTestCase):

0 commit comments

Comments
 (0)