From 079931d12223ec98cbf53185b90db48efa61f93f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 19 Sep 2019 16:45:06 +0200 Subject: bpo-34037: test_asyncio uses shutdown_default_executor() (GH-16284) --- Lib/test/test_asyncio/test_tasks.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/test/test_asyncio/test_tasks.py') diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 6e832eab6d..576714faa8 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -3232,6 +3232,8 @@ class RunCoroutineThreadsafeTests(test_utils.TestCase): self.loop.set_exception_handler(callback) # Set corrupted task factory + self.addCleanup(self.loop.set_task_factory, + self.loop.get_task_factory()) self.loop.set_task_factory(task_factory) # Run event loop -- cgit v1.2.1