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

Method test_asarray_enforce_order

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

Source from the content-addressed store, hash-verified

291 assert_(new_m.flags.c_contiguous)
292
293 def test_asarray_enforce_order(self):
294 # See Issue #6646
295 m = np.eye(3).T
296 assert_(not m.flags.c_contiguous)
297
298 new_m = asarray(m, order='C')
299 assert_(new_m.flags.c_contiguous)
300
301 def test_fix_invalid(self):
302 # Checks fix_invalid.

Callers

nothing calls this directly

Calls 2

asarrayFunction · 0.90
assert_Function · 0.50

Tested by

no test coverage detected