Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ f
Method
f
Lib/test/test_asyncio/test_runners.py:303–305 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
301
302
def
test_run(self):
303
async
def
f():
304
await asyncio.sleep(0)
305
return
'done'
306
307
with
asyncio.Runner()
as
runner:
308
self.assertEqual(
'done'
, runner.run(f()))
Callers
nothing calls this directly
Calls
6
g
Function · 0.50
sleep
Method · 0.45
append
Method · 0.45
get
Method · 0.45
set
Method · 0.45
run
Method · 0.45
Tested by
no test coverage detected