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

Method test_0d

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

Source from the content-addressed store, hash-verified

658 insert(a, 1, a[:, 2, :], axis=1))
659
660 def test_0d(self):
661 a = np.array(1)
662 with pytest.raises(AxisError):
663 insert(a, [], 2, axis=0)
664 with pytest.raises(TypeError):
665 insert(a, [], 2, axis="nonsense")
666
667 def test_subclass(self):
668 class SubClass(np.ndarray):

Callers

nothing calls this directly

Calls 1

insertFunction · 0.90

Tested by

no test coverage detected