MCPcopy
hub / github.com/numpy/numpy / test_asarray_enforce_order

Method test_asarray_enforce_order

numpy/ma/tests/test_core.py:388–394  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

386 assert_(new_m.flags.c_contiguous)
387
388 def test_asarray_enforce_order(self):
389 # See Issue #6646
390 m = np.eye(3).T
391 assert_(not m.flags.c_contiguous)
392
393 new_m = asarray(m, order='C')
394 assert_(new_m.flags.c_contiguous)
395
396 def test_fix_invalid(self):
397 # Checks fix_invalid.

Callers

nothing calls this directly

Calls 2

asarrayFunction · 0.90
assert_Function · 0.85

Tested by

no test coverage detected