Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_raises
Function · 0.90
item
Method · 0.80
Tested by
no test coverage detected