MCPcopy
hub / github.com/numpy/numpy / test_mmap

Method test_mmap

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

Source from the content-addressed store, hash-verified

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')])

Callers

nothing calls this directly

Calls 1

roundtripMethod · 0.95

Tested by

no test coverage detected