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

Method test_single_item_array

numpy/lib/tests/test_function_base.py:935–942  ·  view source on GitHub ↗
(self, indexer)

Source from the content-addressed store, hash-verified

933
934 @pytest.mark.parametrize("indexer", [np.array([1]), [1]])
935 def test_single_item_array(self, indexer):
936 a_del_int = delete(self.a, 1)
937 a_del = delete(self.a, indexer)
938 assert_equal(a_del_int, a_del)
939
940 nd_a_del_int = delete(self.nd_a, 1, axis=1)
941 nd_a_del = delete(self.nd_a, np.array([1]), axis=1)
942 assert_equal(nd_a_del_int, nd_a_del)
943
944 def test_single_item_array_non_int(self):
945 # Special handling for integer arrays must not affect non-integer ones.

Callers

nothing calls this directly

Calls 2

deleteFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected