summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2016-02-23 13:57:58 -0800
committerCharles Harris <charlesr.harris@gmail.com>2016-02-24 11:41:46 -0700
commit8919cb46a4a937781b52c73818b69661bbdb12eb (patch)
tree037d1b5fe2d80e692922468f485f1633f62fbd5d /numpy
parenta51655578df2fb1cfe161887cc6414120d0cf8c5 (diff)
downloadnumpy-8919cb46a4a937781b52c73818b69661bbdb12eb.tar.gz
TST: fix MemoryError on win32
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_multiarray.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 6fb7b4b36..a6c8489ef 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -593,6 +593,10 @@ class TestCreation(TestCase):
for dt in types:
d = np.zeros((30 * 1024**2,), dtype=dt)
assert_(not d.any())
+ # This test can fail on 32-bit systems due to insufficient
+ # contiguous memory. Deallocating the previous array increases the
+ # chance of success.
+ del(d)
def test_zeros_obj(self):
# test initialization from PyLong(0)