mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
This commit is contained in:
parent
61b6e5cf92
commit
0ce1f7e02d
1 changed files with 3 additions and 1 deletions
|
@ -2194,8 +2194,10 @@ else:
|
||||||
def test_get_event_loop_new_process(self):
|
def test_get_event_loop_new_process(self):
|
||||||
async def main():
|
async def main():
|
||||||
pool = concurrent.futures.ProcessPoolExecutor()
|
pool = concurrent.futures.ProcessPoolExecutor()
|
||||||
return await self.loop.run_in_executor(
|
result = await self.loop.run_in_executor(
|
||||||
pool, _test_get_event_loop_new_process__sub_proc)
|
pool, _test_get_event_loop_new_process__sub_proc)
|
||||||
|
pool.shutdown()
|
||||||
|
return result
|
||||||
|
|
||||||
self.unpatch_get_running_loop()
|
self.unpatch_get_running_loop()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue