From aa8cfce94c9ba054068baf870f82a0608a5395ae Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 3 Oct 2016 07:33:29 -0700 Subject: [PATCH] IOError is also a valid error here --- Tests/test_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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