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

Method test_custom_factory

Lib/test/test_asyncio/test_runners.py:297–300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295 self.assertTrue(runner.get_loop().get_debug())
296
297 def test_custom_factory(self):
298 loop = mock.Mock()
299 with asyncio.Runner(loop_factory=lambda: loop) as runner:
300 self.assertIs(runner.get_loop(), loop)
301
302 def test_run(self):
303 async def f():

Callers

nothing calls this directly

Calls 2

assertIsMethod · 0.45
get_loopMethod · 0.45

Tested by

no test coverage detected