MCPcopy 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.pyFile · 0.45

Calls 13

interrupt_selfFunction · 0.85
EventMethod · 0.80
assertIsInstanceMethod · 0.80
mainFunction · 0.50
sleepMethod · 0.45
get_event_loopMethod · 0.45
assertIsMethod · 0.45
get_debugMethod · 0.45
runMethod · 0.45
closeMethod · 0.45
create_taskMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected