bpo-34037: test_asyncio uses shutdown_default_executor() (GH-16284)

This commit is contained in:
Victor Stinner 2019-09-19 16:45:06 +02:00 committed by GitHub
parent b2dd2dd6e9
commit 079931d122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View file

@ -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