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

Method test_indexing_drops_references

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

Source from the content-addressed store, hash-verified

134 assert_(tmp._mmap is not fp._mmap)
135
136 def test_indexing_drops_references(self):
137 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
138 shape=self.shape)
139 tmp = fp[(1, 2), (2, 3)]
140 if isinstance(tmp, memmap):
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+',

Callers

nothing calls this directly

Calls 2

memmapClass · 0.90
assert_Function · 0.90

Tested by

no test coverage detected