summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-12-19 21:49:32 (GMT)
committerGuido van Rossum <guido@python.org>2013-12-19 21:49:32 (GMT)
commit9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b (patch)
treebef78c9fd1a00dd1e8ee6672fc6d48e87721b290 /Lib/test/test_asyncio
parent4c3c699e623ac8d942a4ede93b13d8dc4146e0ec (diff)
downloadcpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.zip
cpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.tar.gz
cpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.tar.bz2
asyncio: Clean up formatting.
Diffstat (limited to 'Lib/test/test_asyncio')
-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 e303f50..79a25d2 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1115,6 +1115,7 @@ class TaskTests(unittest.TestCase):
def test_current_task(self):
self.assertIsNone(tasks.Task.current_task(loop=self.loop))
+
@tasks.coroutine
def coro(loop):
self.assertTrue(tasks.Task.current_task(loop=loop) is task)
@@ -1146,7 +1147,8 @@ class TaskTests(unittest.TestCase):
task1 = tasks.Task(coro1(self.loop), loop=self.loop)
task2 = tasks.Task(coro2(self.loop), loop=self.loop)
- self.loop.run_until_complete(tasks.wait((task1, task2), loop=self.loop))
+ self.loop.run_until_complete(tasks.wait((task1, task2),
+ loop=self.loop))
self.assertIsNone(tasks.Task.current_task(loop=self.loop))
# Some thorough tests for cancellation propagation through