[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-03-20 21:30:58 +00:00
parent fa5bfacbd6
commit 0b71605dbf

View File

@ -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