diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 22:54:14 -0500 |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 22:54:14 -0500 |
| commit | 33aa6066271be015b00d2deb047bfe632e4da701 (patch) | |
| tree | 96194c515672657398157bd2664a176be08bc4da /tests/test_tasks.py | |
| parent | 392b947d7811a61fc6e268c59fa40f5d2ad6e126 (diff) | |
| download | trollius-33aa6066271be015b00d2deb047bfe632e4da701.tar.gz | |
pep8-ify the code.
Diffstat (limited to 'tests/test_tasks.py')
| -rw-r--r-- | tests/test_tasks.py | 4 |
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 |
