mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +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.
|
# This image hits the offset test.
|
||||||
im = Image.open('Tests/images/l2rgb_read.bmp')
|
im = Image.open('Tests/images/l2rgb_read.bmp')
|
||||||
with self.assertRaises((ValueError, MemoryError)):
|
with self.assertRaises((ValueError, MemoryError, IOError)):
|
||||||
im.load()
|
im.load()
|
||||||
|
|
||||||
Image.MAX_IMAGE_PIXELS = max_pixels
|
Image.MAX_IMAGE_PIXELS = max_pixels
|
||||||
|
|
Loading…
Reference in New Issue
Block a user