MCPcopy Index your code
hub / github.com/numpy/numpy / test_big_arrays

Method test_big_arrays

numpy/lib/tests/test_io.py:234–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 @pytest.mark.slow
233 @pytest.mark.thread_unsafe(reason="crashes with low memory")
234 def test_big_arrays(self):
235 L = (1 << 31) + 100000
236 a = np.empty(L, dtype=np.uint8)
237 with temppath(prefix="numpy_test_big_arrays_", suffix=".npz") as tmp:
238 np.savez(tmp, a=a)
239 del a
240 npfile = np.load(tmp)
241 a = npfile['a'] # Should succeed
242 npfile.close()
243
244 def test_multiple_arrays(self):
245 a = np.array([[1, 2], [3, 4]], float)

Callers

nothing calls this directly

Calls 2

temppathFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected