mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26: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:
|
def test_unbound_local() -> None:
|
||||||
# prepatch, a malformed jp2 file could cause an UnboundLocalError exception.
|
# 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"):
|
with Image.open("Tests/images/unbound_variable.jp2"):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user