From 9d8851c9f54a1e997e0d9a0e92d7ad8cf81a2279 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 09:55:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Tests/test_file_png.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py index 38d7033110c..e5b3ada1a2b 100644 --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -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):