diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2016-02-25 00:42:29 +0000 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2016-02-25 00:42:29 +0000 |
commit | 1373aa79fe9e0563d6d05402c08dac08a329795d (patch) | |
tree | 08c958728c07c461f89a46a535076468037fe643 | |
parent | 077b0ebfe87b2c541f5b76ea3f65298ae39c8f62 (diff) | |
parent | 8919cb46a4a937781b52c73818b69661bbdb12eb (diff) | |
download | numpy-1373aa79fe9e0563d6d05402c08dac08a329795d.tar.gz |
Merge pull request #7331 from charris/add-comment-to-7323
Add comment, TST: fix MemoryError on win32
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 4 |
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) |