diff options
author | Kyle Stanley <aeros167@gmail.com> | 2019-09-19 08:47:22 -0400 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-09-19 15:47:22 +0300 |
commit | 9fdc64cf1266b6d5bf0503847b5c38e5edc53a14 (patch) | |
tree | b2c07128fa5ef4fe3117604235199a618c0d10e5 /Lib/asyncio/runners.py | |
parent | 3171d67a6aaf7fe88685b3a80644f0284686ef63 (diff) | |
download | cpython-git-9fdc64cf1266b6d5bf0503847b5c38e5edc53a14.tar.gz |
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
Diffstat (limited to 'Lib/asyncio/runners.py')
-rw-r--r-- | Lib/asyncio/runners.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/runners.py b/Lib/asyncio/runners.py index 5fbab03dd0..6c87747e77 100644 --- a/Lib/asyncio/runners.py +++ b/Lib/asyncio/runners.py @@ -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() |