Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ get_context
Method
get_context
Lib/test/test_asyncio/test_runners.py:396–397 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
394
return
old
395
396
async
def
get_context():
397
return
contextvars.copy_context()
398
399
with
asyncio.Runner()
as
runner:
400
self.assertEqual(-1, runner.run(f(1)))
Callers
15
mp_preload_main.py
File · 0.45
mp_preload.py
File · 0.45
test_lockf_exclusive
Method · 0.45
test_lockf_share
Method · 0.45
mp_preload_large_sysargv.py
File · 0.45
mp_preload_sysargv.py
File · 0.45
test_queue_feeder_on_queue_feeder_error
Method · 0.45
run_in_child
Method · 0.45
test_context
Method · 0.45
test_spawn_dont_set_context
Method · 0.45
test_context_check_module_types
Method · 0.45
test_set_get
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected