()
| 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()), |
nothing calls this directly
no test coverage detected