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

Method test_subok

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

Source from the content-addressed store, hash-verified

279 assert_(a_fort_copy.flags.f_contiguous)
280
281 def test_subok(self):
282 mx = ma.ones(5)
283 assert_(not ma.isMaskedArray(np.copy(mx, subok=False)))
284 assert_(ma.isMaskedArray(np.copy(mx, subok=True)))
285 # Default behavior
286 assert_(not ma.isMaskedArray(np.copy(mx)))
287
288
289class TestAverage:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
copyMethod · 0.45

Tested by

no test coverage detected