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

Method test_open_with_filename

numpy/core/tests/test_memmap.py:46–51  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

44 assert_equal(newfp.flags.writeable, False)
45
46 def test_open_with_filename(self, tmp_path):
47 tmpname = tmp_path / 'mmap'
48 fp = memmap(tmpname, dtype=self.dtype, mode='w+',
49 shape=self.shape)
50 fp[:] = self.data[:]
51 del fp
52
53 def test_unnamed_file(self):
54 with TemporaryFile() as f:

Callers

nothing calls this directly

Calls 1

memmapClass · 0.90

Tested by

no test coverage detected