MCPcopy Index your code
hub / github.com/RustPython/RustPython / 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)))

Calls

no outgoing calls

Tested by

no test coverage detected