summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_io.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-12-02 19:46:00 -0800
committerGitHub <noreply@github.com>2019-12-02 19:46:00 -0800
commit3a9a63f81aa37b48bc3eb4efdc2e695210805aa5 (patch)
tree7ee7391f2d7214878a56c76d2e4a2d42a835f65a /numpy/lib/tests/test_io.py
parent7999f7c038a50d79b06edf2d45eb5ff2c25a5a42 (diff)
parent9b4d0ac95d178409d030a4c77651f8ed1d305dea (diff)
downloadnumpy-3a9a63f81aa37b48bc3eb4efdc2e695210805aa5.tar.gz
Merge pull request #14794 from mattip/nep-0034-impl
DEP: issue deprecation warning when creating ragged array (NEP 34)
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r--numpy/lib/tests/test_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 66d6a5b00..4188265e8 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -580,7 +580,7 @@ class TestSaveTxt(object):
def test_large_zip(self):
# The test takes at least 6GB of memory, writes a file larger than 4GB
test_data = np.asarray([np.random.rand(np.random.randint(50,100),4)
- for i in range(800000)])
+ for i in range(800000)], dtype=object)
with tempdir() as tmpdir:
np.savez(os.path.join(tmpdir, 'test.npz'), test_data=test_data)