mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
This commit is contained in:
parent
3171d67a6a
commit
9fdc64cf12
6 changed files with 54 additions and 2 deletions
|
@ -45,6 +45,7 @@ def run(main, *, debug=False):
|
|||
try:
|
||||
_cancel_all_tasks(loop)
|
||||
loop.run_until_complete(loop.shutdown_asyncgens())
|
||||
loop.run_until_complete(loop.shutdown_default_executor())
|
||||
finally:
|
||||
events.set_event_loop(None)
|
||||
loop.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue