Removed UnidentifiedImageError, as it inherits from OSError

This commit is contained in:
Andrew Murray 2025-01-14 21:04:08 +11:00
parent 0f2c554c69
commit cf438c53ee

View File

@ -7,7 +7,7 @@ import fuzzers
import packaging import packaging
import pytest import pytest
from PIL import Image, UnidentifiedImageError, features from PIL import Image, features
from Tests.helper import skip_unless_feature from Tests.helper import skip_unless_feature
if sys.platform.startswith("win32"): if sys.platform.startswith("win32"):
@ -42,7 +42,6 @@ def test_fuzz_images(path: str) -> None:
# Known Image.* exceptions # Known Image.* exceptions
Image.DecompressionBombError, Image.DecompressionBombError,
Image.DecompressionBombWarning, Image.DecompressionBombWarning,
UnidentifiedImageError,
): ):
assert True assert True
finally: finally: