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

Method test_new_event_loop

Lib/test/test_asyncio/test_events.py:2887–2892  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2885 th.join()
2886
2887 def test_new_event_loop(self):
2888 policy = test_utils.DefaultEventLoopPolicy()
2889
2890 loop = policy.new_event_loop()
2891 self.assertIsInstance(loop, asyncio.AbstractEventLoop)
2892 loop.close()
2893
2894 def test_set_event_loop(self):
2895 policy = test_utils.DefaultEventLoopPolicy()

Callers

nothing calls this directly

Calls 3

assertIsInstanceMethod · 0.80
new_event_loopMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected