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

Method test_subok

numpy/lib/tests/test_function_base.py:333–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

331 assert_(a_fort_copy.flags.f_contiguous)
332
333 def test_subok(self):
334 mx = ma.ones(5)
335 assert_(not ma.isMaskedArray(np.copy(mx, subok=False)))
336 assert_(ma.isMaskedArray(np.copy(mx, subok=True)))
337 # Default behavior
338 assert_(not ma.isMaskedArray(np.copy(mx)))
339
340
341class TestAverage:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
copyMethod · 0.45

Tested by

no test coverage detected