mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Catch OSError
This commit is contained in:
parent
39fe85f308
commit
3c129142c8
|
@ -269,4 +269,7 @@ def test_crashes(test_file):
|
|||
with open(test_file, "rb") as f:
|
||||
with Image.open(f) as im:
|
||||
# Valgrind should not complain here
|
||||
im.load()
|
||||
try:
|
||||
im.load()
|
||||
except OSError:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user