aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-18 22:56:15 -0500
committerYury Selivanov <yselivanov@sprymix.com>2014-02-18 22:56:15 -0500
commitb41a42e316b09f6abef4cc5dc1fb88ce20b8c306 (patch)
treeba0ed93255205863fb8250613bda5454fc8b4641 /Lib/test/test_asyncio/test_tasks.py
parentb0b0e628ee453126efb16805588ef60e2601fd08 (diff)
downloadcpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.tar.gz
cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.zip
asyncio: pep8-ify the code.
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 024dd2ead51..f27b9522c73 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -876,6 +876,7 @@ class TaskTests(unittest.TestCase):
self.assertEqual(set(f.result() for f in done), {'a', 'b'})
def test_as_completed_duplicate_coroutines(self):
+
@asyncio.coroutine
def coro(s):
return s
@@ -884,7 +885,8 @@ class TaskTests(unittest.TestCase):
def runner():
result = []
c = coro('ham')
- for f in asyncio.as_completed([c, c, coro('spam')], loop=self.loop):
+ for f in asyncio.as_completed([c, c, coro('spam')],
+ loop=self.loop):
result.append((yield from f))
return result