mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
asyncio: Fix pyflakes warnings: remove unused variables and imports
This commit is contained in:
parent
24ba203504
commit
f5e37037cc
8 changed files with 12 additions and 26 deletions
|
@ -830,7 +830,7 @@ class TaskTests(unittest.TestCase):
|
|||
v = yield from f
|
||||
self.assertEqual(v, 'a')
|
||||
|
||||
res = loop.run_until_complete(asyncio.Task(foo(), loop=loop))
|
||||
loop.run_until_complete(asyncio.Task(foo(), loop=loop))
|
||||
|
||||
def test_as_completed_reverse_wait(self):
|
||||
|
||||
|
@ -964,13 +964,9 @@ class TaskTests(unittest.TestCase):
|
|||
loop = test_utils.TestLoop(gen)
|
||||
self.addCleanup(loop.close)
|
||||
|
||||
sleepfut = None
|
||||
|
||||
@asyncio.coroutine
|
||||
def sleep(dt):
|
||||
nonlocal sleepfut
|
||||
sleepfut = asyncio.sleep(dt, loop=loop)
|
||||
yield from sleepfut
|
||||
yield from asyncio.sleep(dt, loop=loop)
|
||||
|
||||
@asyncio.coroutine
|
||||
def doit():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue