commit | 9fdc64cf1266b6d5bf0503847b5c38e5edc53a14 | [log] [tgz] |
---|---|---|
author | Kyle Stanley <aeros167@gmail.com> | Thu Sep 19 08:47:22 2019 -0400 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Thu Sep 19 15:47:22 2019 +0300 |
tree | b2c07128fa5ef4fe3117604235199a618c0d10e5 | |
parent | 3171d67a6aaf7fe88685b3a80644f0284686ef63 [diff] [blame] |
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
diff --git a/Lib/asyncio/runners.py b/Lib/asyncio/runners.py index 5fbab03..6c87747 100644 --- a/Lib/asyncio/runners.py +++ b/Lib/asyncio/runners.py
@@ -45,6 +45,7 @@ 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()