From 02148d4b505ffe0c86269c8fb13ece7f9d9cc0f2 Mon Sep 17 00:00:00 2001 From: Isaiah Norton Date: Sat, 20 Oct 2018 23:57:25 -0400 Subject: [PATCH] Add another test for 1475 First didn't work in OpenSlide. This test shows the issue, from: https://github.com/python-pillow/Pillow/issues/2251#issuecomment-262985551 --- Tests/check_large_memory_numpy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/check_large_memory_numpy.py b/Tests/check_large_memory_numpy.py index f0df1971877..62b823b68e5 100644 --- a/Tests/check_large_memory_numpy.py +++ b/Tests/check_large_memory_numpy.py @@ -46,6 +46,10 @@ def test_1475_b(self): a = np.zeros((36352, 18144), dtype=np.float) im = Image.fromarray(a, mode='F') + def test_1475_c(self): + a = np.zeros((31000, 30030, 3), dtype=np.uint8) + img = Image.fromarray(a, 'RGB') + if __name__ == '__main__': unittest.main()