summaryrefslogtreecommitdiff
path: root/tests/test_tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-18 22:54:14 -0500
committerYury Selivanov <yselivanov@sprymix.com>2014-02-18 22:54:14 -0500
commit33aa6066271be015b00d2deb047bfe632e4da701 (patch)
tree96194c515672657398157bd2664a176be08bc4da /tests/test_tasks.py
parent392b947d7811a61fc6e268c59fa40f5d2ad6e126 (diff)
downloadtrollius-33aa6066271be015b00d2deb047bfe632e4da701.tar.gz
pep8-ify the code.
Diffstat (limited to 'tests/test_tasks.py')
-rw-r--r--tests/test_tasks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_tasks.py b/tests/test_tasks.py
index 024dd2e..f27b952 100644
--- a/tests/test_tasks.py
+++ b/tests/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