[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-01-16 07:36:57 +00:00
parent 44e77a22b5
commit b2711c3e8b

View File

@ -777,7 +777,7 @@ class TestFilePng:
mystdout = mystdout.buffer
with Image.open(mystdout) as reloaded:
assert_image_equal_tofile(reloaded, TEST_PNG_FILE)
def test_end_truncated_file(self):
ImageFile.LOAD_TRUNCATED_IMAGES = True
try:
@ -787,7 +787,6 @@ class TestFilePng:
ImageFile.LOAD_TRUNCATED_IMAGES = False
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
@skip_unless_feature("zlib")
class TestTruncatedPngPLeaks(PillowLeakTestCase):