(self)
| 161 | |
| 162 | @pytest.mark.skipif(sys.platform == 'win32', reason="Fails on Win32") |
| 163 | def test_mmap(self): |
| 164 | a = np.array([[1, 2.5], [4, 7.3]]) |
| 165 | self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'}) |
| 166 | |
| 167 | a = np.asfortranarray([[1, 2.5], [4, 7.3]]) |
| 168 | self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'}) |
| 169 | |
| 170 | def test_record(self): |
| 171 | a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')]) |