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

Method new_event_loop

Lib/test/test_asyncio/test_runners.py:257–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 await asyncio.Event().wait()
256
257 def new_event_loop():
258 loop = self.new_loop()
259 loop.set_task_factory(Task)
260 return loop
261
262 asyncio.events._set_event_loop_policy(TestPolicy(new_event_loop))
263 with self.assertRaises(asyncio.CancelledError):

Callers 15

setUpMethod · 0.45
test_asyncio_1Method · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
new_loopMethod · 0.45
test_ambiguous_loopsMethod · 0.45
test_new_event_loopMethod · 0.45
test_set_event_loopMethod · 0.45

Calls 2

new_loopMethod · 0.45
set_task_factoryMethod · 0.45

Tested by

no test coverage detected