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

Method test_indexing_drops_references

numpy/core/tests/test_memmap.py:129–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 assert_(tmp._mmap is not fp._mmap)
128
129 def test_indexing_drops_references(self):
130 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
131 shape=self.shape)
132 tmp = fp[(1, 2), (2, 3)]
133 if isinstance(tmp, memmap):
134 assert_(tmp._mmap is not fp._mmap)
135
136 def test_slicing_keeps_references(self):
137 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