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

Method test_array_order_preserve

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

Source from the content-addressed store, hash-verified

916 assert_(isinstance(delete(a, slice(1, -2)), SubClass))
917
918 def test_array_order_preserve(self):
919 # See gh-7113
920 k = np.arange(10).reshape(2, 5, order='F')
921 m = delete(k, slice(60, None), axis=1)
922
923 # 'k' is Fortran ordered, and 'm' should have the
924 # same ordering as 'k' and NOT become C ordered
925 assert_equal(m.flags.c_contiguous, k.flags.c_contiguous)
926 assert_equal(m.flags.f_contiguous, k.flags.f_contiguous)
927
928 def test_index_floats(self):
929 with pytest.raises(IndexError):

Callers

nothing calls this directly

Calls 3

deleteFunction · 0.90
assert_equalFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected