(self)
| 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) |