MCPcopy 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.pyFile · 0.45
mp_preload.pyFile · 0.45
test_lockf_exclusiveMethod · 0.45
test_lockf_shareMethod · 0.45
run_in_childMethod · 0.45
test_contextMethod · 0.45
test_set_getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected