Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_errstate_decorator
Method
test_errstate_decorator
numpy/core/tests/test_errstate.py:55–61 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
53
assert_(np.geterrcall() is olderrcall,
'call is not olderrcall'
)
54
55
def
test_errstate_decorator(self):
56
@np.errstate(all=
'ignore'
)
57
def
foo():
58
a = -np.arange(3)
59
a // 0
60
61
foo()
Callers
nothing calls this directly
Calls
1
foo
Class · 0.70
Tested by
no test coverage detected