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

Method test_low_dim_handling

numpy/lib/tests/test_index_tricks.py:491–495  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

489 assert_equal(np.where(a != 0), (i, i, i, i))
490
491 def test_low_dim_handling(self):
492 # raise error with low dimensionality
493 a = np.zeros(3, int)
494 with assert_raises_regex(ValueError, "at least 2-d"):
495 fill_diagonal(a, 5)
496
497 def test_hetero_shape_handling(self):
498 # raise error with high dimensionality and

Callers

nothing calls this directly

Calls 2

assert_raises_regexFunction · 0.90
fill_diagonalFunction · 0.90

Tested by

no test coverage detected