Commit 7c278a5e authored by Xiang Zhang's avatar Xiang Zhang Committed by GitHub

bpo-30110: fix resource leak in test_asyncio.test_events (#1413)

parent 96f50285
......@@ -2194,8 +2194,10 @@ else:
def test_get_event_loop_new_process(self):
async def main():
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.shutdown()
return result
self.unpatch_get_running_loop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment