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

Method test_methods

numpy/_core/tests/test_indexerrors.py:118–122  ·  view source on GitHub ↗

cases from methods.c

(self)

Source from the content-addressed store, hash-verified

116 lambda: a[index])
117
118 def test_methods(self):
119 "cases from methods.c"
120
121 a = np.zeros((3, 3))
122 assert_raises(IndexError, lambda: a.item(100))

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
itemMethod · 0.80

Tested by

no test coverage detected