Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b6e5c commit 0ce1f7eCopy full SHA for 0ce1f7e
1 file changed
Lib/test/test_asyncio/test_events.py
@@ -2194,8 +2194,10 @@ def tearDown(self):
2194
def test_get_event_loop_new_process(self):
2195
async def main():
2196
pool = concurrent.futures.ProcessPoolExecutor()
2197
- return await self.loop.run_in_executor(
+ result = await self.loop.run_in_executor(
2198
pool, _test_get_event_loop_new_process__sub_proc)
2199
+ pool.shutdown()
2200
+ return result
2201
2202
self.unpatch_get_running_loop()
2203
0 commit comments