(self)
| 554 | insert(a, 1, a[:, 2, :], axis=1)) |
| 555 | |
| 556 | def test_0d(self): |
| 557 | a = np.array(1) |
| 558 | with pytest.raises(np.AxisError): |
| 559 | insert(a, [], 2, axis=0) |
| 560 | with pytest.raises(TypeError): |
| 561 | insert(a, [], 2, axis="nonsense") |
| 562 | |
| 563 | def test_subclass(self): |
| 564 | class SubClass(np.ndarray): |