From 10da645ac676f238a97d8d177c8338b248800a3e Mon Sep 17 00:00:00 2001 From: cgohlke Date: Mon, 30 Jun 2014 19:19:09 -0700 Subject: [PATCH 1/4] Skip LargeMemoryTest on 32 bit systems --- Tests/large_memory_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/large_memory_test.py b/Tests/large_memory_test.py index 8552ed4dd..77b4d9f22 100644 --- a/Tests/large_memory_test.py +++ b/Tests/large_memory_test.py @@ -1,3 +1,6 @@ +import sys +import unittest + from helper import * # This test is not run automatically. @@ -14,6 +17,7 @@ YDIM = 32769 XDIM = 48000 +@unittest.skipIf(sys.maxsize <= 2**32, "requires 64 bit system") class LargeMemoryTest(PillowTestCase): def _write_png(self, xdim, ydim): From 647f2e177193e0748d22cd16a331496135b56766 Mon Sep 17 00:00:00 2001 From: cgohlke Date: Mon, 30 Jun 2014 19:20:15 -0700 Subject: [PATCH 2/4] Skip LargeMemoryNumpyTest on 32 bit systems --- Tests/large_memory_numpy_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/large_memory_numpy_test.py b/Tests/large_memory_numpy_test.py index deb2fc8c6..1701f995b 100644 --- a/Tests/large_memory_numpy_test.py +++ b/Tests/large_memory_numpy_test.py @@ -1,3 +1,6 @@ +import sys +import unittest + from helper import * # This test is not run automatically. @@ -18,6 +21,7 @@ YDIM = 32769 XDIM = 48000 +@unittest.skipIf(sys.maxsize <= 2**32, "requires 64 bit system") class LargeMemoryNumpyTest(PillowTestCase): def _write_png(self, xdim, ydim): From f0342393fffa6ffe82cc16974ae0947099c1533c Mon Sep 17 00:00:00 2001 From: cgohlke Date: Mon, 30 Jun 2014 23:20:12 -0700 Subject: [PATCH 3/4] Don't import unittest because it's done in helper --- Tests/large_memory_numpy_test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/large_memory_numpy_test.py b/Tests/large_memory_numpy_test.py index 1701f995b..8a13d0aea 100644 --- a/Tests/large_memory_numpy_test.py +++ b/Tests/large_memory_numpy_test.py @@ -1,5 +1,4 @@ import sys -import unittest from helper import * From 5c3736c4a60a00141b0cedecfd9643e00f35f37f Mon Sep 17 00:00:00 2001 From: cgohlke Date: Mon, 30 Jun 2014 23:20:39 -0700 Subject: [PATCH 4/4] Don't import unittest because it's done in helper --- Tests/large_memory_test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/large_memory_test.py b/Tests/large_memory_test.py index 77b4d9f22..a63a42cd5 100644 --- a/Tests/large_memory_test.py +++ b/Tests/large_memory_test.py @@ -1,5 +1,4 @@ import sys -import unittest from helper import *