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

Method cb

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

Source from the content-addressed store, hash-verified

301 def test_run_until_complete_stopped(self):
302
303 async def cb():
304 self.loop.stop()
305 await asyncio.sleep(0.1)
306 task = cb()
307 self.assertRaises(RuntimeError,
308 self.loop.run_until_complete, task)

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected