mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Merge pull request #8168 from radarhere/jpeg2k_error
This commit is contained in:
commit
02e8bf95ae
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user