MCPcopy Create free account
hub / github.com/numpy/numpy / test_big_arrays

Method test_big_arrays

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

Source from the content-addressed store, hash-verified

207 @pytest.mark.skipif(not IS_64BIT, reason="Needs 64bit platform")
208 @pytest.mark.slow
209 def test_big_arrays(self):
210 L = (1 << 31) + 100000
211 a = np.empty(L, dtype=np.uint8)
212 with temppath(prefix="numpy_test_big_arrays_", suffix=".npz") as tmp:
213 np.savez(tmp, a=a)
214 del a
215 npfile = np.load(tmp)
216 a = npfile['a'] # Should succeed
217 npfile.close()
218 del a # Avoid pyflakes unused variable warning.
219
220 def test_multiple_arrays(self):
221 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