diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-19 16:45:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 16:45:06 +0200 |
commit | 079931d12223ec98cbf53185b90db48efa61f93f (patch) | |
tree | d01265076e2209ca1404644075b491172343f705 /Lib/test/test_asyncio/test_tasks.py | |
parent | b2dd2dd6e9212ba6b03885b998736a180ef283d6 (diff) | |
download | cpython-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.py | 2 |
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 |