mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34037: test_asyncio uses shutdown_default_executor() (GH-16284)
This commit is contained in:
parent
b2dd2dd6e9
commit
079931d122
3 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue