MCPcopy Index your code
hub / github.com/RustPython/RustPython / main

Method main

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

Source from the content-addressed store, hash-verified

3001 self.addCleanup(multiprocessing_cleanup_tests)
3002
3003 async def main():
3004 if multiprocessing.get_start_method() == 'fork':
3005 # Avoid 'fork' DeprecationWarning.
3006 mp_context = multiprocessing.get_context('forkserver')
3007 else:
3008 mp_context = None
3009 pool = concurrent.futures.ProcessPoolExecutor(
3010 mp_context=mp_context)
3011 result = await self.loop.run_in_executor(
3012 pool, _test_get_event_loop_new_process__sub_proc)
3013 pool.shutdown()
3014 return result
3015
3016 self.assertEqual(
3017 self.loop.run_until_complete(main()),

Callers

nothing calls this directly

Calls 9

shutdownMethod · 0.95
closingMethod · 0.80
get_start_methodMethod · 0.45
get_contextMethod · 0.45
run_in_executorMethod · 0.45
new_event_loopMethod · 0.45
run_foreverMethod · 0.45
failMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected