Skip to content

Commit

Permalink
Add another test for 1475
Browse files Browse the repository at this point in the history
First didn't work in OpenSlide. This test shows the issue, from:

  python-pillow#2251 (comment)
  • Loading branch information
ihnorton committed Oct 23, 2018
1 parent 27fb093 commit 02148d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/check_large_memory_numpy.py
Expand Up @@ -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()

0 comments on commit 02148d4

Please sign in to comment.