From 0b71605dbfe3bba59d7b67f0f7ebbbfbe0016b07 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:30:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Tests/test_file_jxl_metadata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_jxl_metadata.py b/Tests/test_file_jxl_metadata.py index b0eac6c6e..f6be96c80 100644 --- a/Tests/test_file_jxl_metadata.py +++ b/Tests/test_file_jxl_metadata.py @@ -88,10 +88,12 @@ def test_getxmp() -> None: ): assert im.getxmp() == {} + def test_fix_exif_fail() -> None: with Image.open("Tests/images/flower2.jxl") as image: assert image._fix_exif(b"\0\0\0\0") is None + def test_read_exif_metadata_empty() -> None: with Image.open("Tests/images/hopper.jxl") as image: - assert(image._getexif() is None) + assert image._getexif() is None