mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
IOError is also a valid error here
This commit is contained in:
parent
b3ad80a2bd
commit
aa8cfce94c
|
@ -15,7 +15,7 @@ class TestMap(PillowTestCase):
|
|||
|
||||
# This image hits the offset test.
|
||||
im = Image.open('Tests/images/l2rgb_read.bmp')
|
||||
with self.assertRaises((ValueError, MemoryError)):
|
||||
with self.assertRaises((ValueError, MemoryError, IOError)):
|
||||
im.load()
|
||||
|
||||
Image.MAX_IMAGE_PIXELS = max_pixels
|
||||
|
|
Loading…
Reference in New Issue
Block a user