MCPcopy Index your code
hub / github.com/numpy/numpy / test_open_with_filename

Method test_open_with_filename

numpy/_core/tests/test_memmap.py:53–58  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

51 assert_equal(newfp.flags.writeable, False)
52
53 def test_open_with_filename(self, tmp_path):
54 tmpname = tmp_path / 'mmap'
55 fp = memmap(tmpname, dtype=self.dtype, mode='w+',
56 shape=self.shape)
57 fp[:] = self.data[:]
58 del fp
59
60 def test_unnamed_file(self):
61 with TemporaryFile() as f:

Callers

nothing calls this directly

Calls 1

memmapClass · 0.90

Tested by

no test coverage detected