(self)
| 170 | |
| 171 | @pytest.mark.skipif(sys.platform == 'win32', reason="Fails on Win32") |
| 172 | def test_mmap(self): |
| 173 | a = np.array([[1, 2.5], [4, 7.3]]) |
| 174 | self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'}) |
| 175 | |
| 176 | a = np.asfortranarray([[1, 2.5], [4, 7.3]]) |
| 177 | self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'}) |
| 178 | |
| 179 | def test_record(self): |
| 180 | a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')]) |