Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 12, 2024
1 parent 388a3f6 commit 9d8851c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/test_file_png.py
Expand Up @@ -777,18 +777,17 @@ class MyStdOut:
mystdout = mystdout.buffer
with Image.open(mystdout) as reloaded:
assert_image_equal_tofile(reloaded, TEST_PNG_FILE)

def test_end_truncated_filed(self):
ImageFile.LOAD_TRUNCATED_IMAGES = True
try:
img = Image.open("Tests/images/end_trunc_file.png")
img = Image.open("Tests/images/end_trunc_file.png")
img.load()
assert img is not None
finally:
ImageFile.LOAD_TRUNCATED_IMAGES = False



@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
@skip_unless_feature("zlib")
class TestTruncatedPngPLeaks(PillowLeakTestCase):
Expand Down

0 comments on commit 9d8851c

Please sign in to comment.