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

Method test_invalid_axis

numpy/core/tests/test_multiarray.py:5255–5257  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5253 assert_array_equal(idx, np.lexsort((u, v)))
5254
5255 def test_invalid_axis(self): # gh-7528
5256 x = np.linspace(0., 1., 42*3).reshape(42, 3)
5257 assert_raises(np.AxisError, np.lexsort, x, axis=2)
5258
5259class TestIO:
5260 """Test tofile, fromfile, tobytes, and fromstring"""

Callers

nothing calls this directly

Calls 3

assert_raisesFunction · 0.90
reshapeMethod · 0.80
linspaceMethod · 0.80

Tested by

no test coverage detected