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