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

Method test_slicing_keeps_references

numpy/_core/tests/test_memmap.py:143–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 assert_(tmp._mmap is not fp._mmap)
142
143 def test_slicing_keeps_references(self):
144 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
145 shape=self.shape)
146 assert_(fp[:2, :2]._mmap is fp._mmap)
147
148 def test_view(self):
149 fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)

Callers

nothing calls this directly

Calls 2

memmapClass · 0.90
assert_Function · 0.90

Tested by

no test coverage detected