IOError is also a valid error here

This commit is contained in:
wiredfool 2016-10-03 07:33:29 -07:00
parent b3ad80a2bd
commit aa8cfce94c

View File

@ -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