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

Method test_slicing_keeps_references

numpy/core/tests/test_memmap.py:136–139  ·  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_slicing_keeps_references(self):
137 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
138 shape=self.shape)
139 assert_(fp[:2, :2]._mmap is fp._mmap)
140
141 def test_view(self):
142 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