diff --git a/Tests/test_map.py b/Tests/test_map.py index 235bfadbc..d9b66e965 100644 --- a/Tests/test_map.py +++ b/Tests/test_map.py @@ -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