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

Method test_view

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

Source from the content-addressed store, hash-verified

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)
143 new1 = fp.view()
144 new2 = new1.view()
145 assert_(new1.base is fp)
146 assert_(new2.base is fp)
147 new_array = asarray(fp)
148 assert_(new_array.base is fp)
149
150 def test_ufunc_return_ndarray(self):
151 fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)

Callers

nothing calls this directly

Calls 4

memmapClass · 0.90
assert_Function · 0.90
asarrayFunction · 0.90
viewMethod · 0.45

Tested by

no test coverage detected