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

Method test_array_order_preserve

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

Source from the content-addressed store, hash-verified

1056 assert_(isinstance(delete(a, slice(1, -2)), SubClass))
1057
1058 def test_array_order_preserve(self):
1059 # See gh-7113
1060 k = np.arange(10).reshape(2, 5, order='F')
1061 m = delete(k, slice(60, None), axis=1)
1062
1063 # 'k' is Fortran ordered, and 'm' should have the
1064 # same ordering as 'k' and NOT become C ordered
1065 assert_equal(m.flags.c_contiguous, k.flags.c_contiguous)
1066 assert_equal(m.flags.f_contiguous, k.flags.f_contiguous)
1067
1068 def test_index_floats(self):
1069 with pytest.raises(IndexError):

Callers

nothing calls this directly

Calls 4

deleteFunction · 0.90
assert_equalFunction · 0.90
sliceFunction · 0.85
reshapeMethod · 0.80

Tested by

no test coverage detected