aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-09-19 16:45:06 +0200
committerGitHub <noreply@github.com>2019-09-19 16:45:06 +0200
commit079931d12223ec98cbf53185b90db48efa61f93f (patch)
treed01265076e2209ca1404644075b491172343f705 /Lib/test/test_asyncio/test_tasks.py
parentb2dd2dd6e9212ba6b03885b998736a180ef283d6 (diff)
downloadcpython-079931d12223ec98cbf53185b90db48efa61f93f.tar.gz
cpython-079931d12223ec98cbf53185b90db48efa61f93f.zip
bpo-34037: test_asyncio uses shutdown_default_executor() (GH-16284)
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 6e832eab6d5..576714faa88 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