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

Method test_no_shape

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

Source from the content-addressed store, hash-verified

200 assert_(fp.offset == offset)
201
202 def test_no_shape(self):
203 self.tmpfp.write(b'a'*16)
204 mm = memmap(self.tmpfp, dtype='float64')
205 assert_equal(mm.shape, (2,))
206
207 def test_empty_array(self):
208 # gh-12653

Callers

nothing calls this directly

Calls 3

memmapClass · 0.90
assert_equalFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected