summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-26 10:07:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-26 10:07:42 (GMT)
commitf5e37037cc14bd30f2a270326852970d46bc648f (patch)
tree22d2178338ea80627aa62354c06acae4c560e9e3 /Lib/test/test_asyncio/test_tasks.py
parent24ba2035048566df2e0876fb719749d984234bc7 (diff)
downloadcpython-f5e37037cc14bd30f2a270326852970d46bc648f.zip
cpython-f5e37037cc14bd30f2a270326852970d46bc648f.tar.gz
cpython-f5e37037cc14bd30f2a270326852970d46bc648f.tar.bz2
asyncio: Fix pyflakes warnings: remove unused variables and imports
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 6d03dc7..ced3431 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -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():