MCPcopy Create free account
hub / github.com/numpy/numpy / test_mmap

Method test_mmap

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

roundtripMethod · 0.95

Tested by

no test coverage detected