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

Method new_test_loop

Lib/test/test_asyncio/utils.py:546–549  ·  view source on GitHub ↗
(self, gen=None)

Source from the content-addressed store, hash-verified

544 self.addCleanup(self.close_loop, loop)
545
546 def new_test_loop(self, gen=None):
547 loop = TestLoop(gen)
548 self.set_event_loop(loop)
549 return loop
550
551 def setUp(self):
552 self._thread_cleanup = threading_helper.threading_setup()

Callers 15

setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80

Calls 2

set_event_loopMethod · 0.95
TestLoopClass · 0.85

Tested by 15

setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64