Skip to content

Commit 02e8bf9

Browse files
authored
Merge pull request #8168 from radarhere/jpeg2k_error
2 parents a596a40 + 44b82e4 commit 02e8bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/test_file_jpeg2k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def test_issue_6194() -> None:
337337

338338
def test_unbound_local() -> None:
339339
# prepatch, a malformed jp2 file could cause an UnboundLocalError exception.
340-
with pytest.raises(OSError):
340+
with pytest.raises(UnidentifiedImageError):
341341
with Image.open("Tests/images/unbound_variable.jp2"):
342342
pass
343343

0 commit comments

Comments
 (0)