Merge pull request #8168 from radarhere/jpeg2k_error

This commit is contained in:
Hugo van Kemenade 2024-06-25 21:55:19 +03:00 committed by GitHub
commit 02e8bf95ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,7 +337,7 @@ def test_issue_6194() -> None:
def test_unbound_local() -> None:
# prepatch, a malformed jp2 file could cause an UnboundLocalError exception.
with pytest.raises(OSError):
with pytest.raises(UnidentifiedImageError):
with Image.open("Tests/images/unbound_variable.jp2"):
pass