Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ main
Method
main
Lib/test/test_asyncio/test_runners.py:79–81 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
77
78
def
test_asyncio_run_return(self):
79
async
def
main():
80
await asyncio.sleep(0)
81
return
42
82
83
self.assertEqual(asyncio.run(main()), 42)
84
Callers
1
test_runners.py
File · 0.45
Calls
13
interrupt_self
Function · 0.85
Event
Method · 0.80
assertIsInstance
Method · 0.80
main
Function · 0.50
sleep
Method · 0.45
get_event_loop
Method · 0.45
assertIs
Method · 0.45
get_debug
Method · 0.45
run
Method · 0.45
close
Method · 0.45
create_task
Method · 0.45
wait
Method · 0.45
Tested by
no test coverage detected