mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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 open(test_file, "rb") as f:
|
||||||
with Image.open(f) as im:
|
with Image.open(f) as im:
|
||||||
# Valgrind should not complain here
|
# Valgrind should not complain here
|
||||||
im.load()
|
try:
|
||||||
|
im.load()
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user