From b938f39d3c603afbe918c7e7296a6acf8cac1f5e Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 20 Oct 2018 23:45:28 -0400 Subject: [PATCH] tests for issue #1475 --- Tests/check_large_memory_numpy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tests/check_large_memory_numpy.py b/Tests/check_large_memory_numpy.py index e48d9836797..f0df1971877 100644 --- a/Tests/check_large_memory_numpy.py +++ b/Tests/check_large_memory_numpy.py @@ -38,6 +38,14 @@ def test_2gpx(self): """failed prepatch""" self._write_png(XDIM, XDIM) + def test_1475(self): + """ issue #1475 """ + self._write_png(36352, 18144) + + def test_1475_b(self): + a = np.zeros((36352, 18144), dtype=np.float) + im = Image.fromarray(a, mode='F') + if __name__ == '__main__': unittest.main()