Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ warn_future
Method
warn_future
Lib/test/test_unittest/test_assertions.py:390–391 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
388
389
def
test_assertNotWarns(self):
390
def
warn_future():
391
warnings.warn(
'xyz'
, FutureWarning, stacklevel=2)
392
self.assertMessagesCM(
'_assertNotWarns'
, (FutureWarning,),
393
warn_future,
394
[
'^FutureWarning triggered$'
,
Callers
nothing calls this directly
Calls
1
warn
Method · 0.45
Tested by
no test coverage detected