Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ f
Method
f
numpy/testing/tests/test_utils.py:796–798 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
794
795
def
test_warn(self):
796
def
f():
797
warnings.warn(
"yo"
)
798
return
3
799
800
before_filters = sys.modules[
'warnings'
].filters[:]
801
assert_equal(assert_warns(UserWarning, f), 3)
Callers
1
random.py
File · 0.45
Calls
1
warn
Method · 0.80
Tested by
no test coverage detected