diff options
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 822338f..19cf1e6 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -2999,9 +2999,8 @@ class RunCoroutineThreadsafeTests(test_utils.TestCase): def task_factory(loop, coro): raise NameError - run = self.loop.create_task( - self.loop.run_in_executor( - None, lambda: self.target(advance_coro=True))) + run = self.loop.run_in_executor( + None, lambda: self.target(advance_coro=True)) # Set exception handler callback = test_utils.MockCallback() |