MCPcopy Index your code
hub / github.com/python/cpython / main

Method main

Lib/test/test_asyncio/test_events.py:1879–1889  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1877 self.assertTrue(ov.pending)
1878
1879 async def main():
1880 try:
1881 self.loop.call_soon(f.cancel)
1882 await f
1883 except asyncio.CancelledError:
1884 res = 'cancelled'
1885 else:
1886 res = None
1887 finally:
1888 self.loop.stop()
1889 return res
1890
1891 t = self.loop.create_task(main())
1892 self.loop.run_forever()

Callers 1

test_events.pyFile · 0.45

Calls 2

call_soonMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected