summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_io.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-01-24 10:00:15 -0700
committerGitHub <noreply@github.com>2021-01-24 10:00:15 -0700
commit3f04a32ffab73d218ac48f061b7b0d3112b3451c (patch)
treee395b8546d77e48f564de09eb7cbed3336456f4e /numpy/lib/tests/test_io.py
parentd3653bc6be7a655c2322b2d95f6209626e438171 (diff)
parent333fd949081b279da31e589d178d3ac609d0597b (diff)
downloadnumpy-3f04a32ffab73d218ac48f061b7b0d3112b3451c.tar.gz
Merge pull request #18208 from mattip/skip
TST: raise memory limit for test
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r--numpy/lib/tests/test_io.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index aa4499764..534ab683c 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -580,7 +580,7 @@ class TestSaveTxt:
memoryerror_raised.value = False
try:
# The test takes at least 6GB of memory, writes a file larger
- # than 4GB
+ # than 4GB. This tests the ``allowZip64`` kwarg to ``zipfile``
test_data = np.asarray([np.random.rand(
np.random.randint(50,100),4)
for i in range(800000)], dtype=object)
@@ -599,6 +599,9 @@ class TestSaveTxt:
p.join()
if memoryerror_raised.value:
raise MemoryError("Child process raised a MemoryError exception")
+ # -9 indicates a SIGKILL, probably an OOM.
+ if p.exitcode == -9:
+ pytest.xfail("subprocess got a SIGKILL, apparently free memory was not sufficient")
assert p.exitcode == 0
class LoadTxtBase: