Skip to content

Commit

Permalink
Merge pull request numpy#7331 from charris/add-comment-to-7323
Browse files Browse the repository at this point in the history
Add comment, TST: fix MemoryError on win32
  • Loading branch information
njsmith committed Feb 25, 2016
2 parents 077b0eb + 8919cb4 commit 1373aa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numpy/core/tests/test_multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ def test_zeros_big(self):
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)
Expand Down

0 comments on commit 1373aa7

Please sign in to comment.