Kaydet (Commit) a849be9c authored tarafından Guido van Rossum's avatar Guido van Rossum

asyncio: Fix misc whitespace issues.

üst 1c165373
...@@ -14,6 +14,7 @@ from . import tasks ...@@ -14,6 +14,7 @@ from . import tasks
_DEFAULT_LIMIT = 2**16 _DEFAULT_LIMIT = 2**16
class IncompleteReadError(EOFError): class IncompleteReadError(EOFError):
""" """
Incomplete read error. Attributes: Incomplete read error. Attributes:
......
...@@ -379,7 +379,6 @@ class TaskTests(unittest.TestCase): ...@@ -379,7 +379,6 @@ class TaskTests(unittest.TestCase):
self.assertAlmostEqual(0.1, loop.time()) self.assertAlmostEqual(0.1, loop.time())
self.assertEqual(foo_running, False) self.assertEqual(foo_running, False)
def test_wait_for_blocking(self): def test_wait_for_blocking(self):
loop = test_utils.TestLoop() loop = test_utils.TestLoop()
self.addCleanup(loop.close) self.addCleanup(loop.close)
...@@ -388,7 +387,9 @@ class TaskTests(unittest.TestCase): ...@@ -388,7 +387,9 @@ class TaskTests(unittest.TestCase):
def coro(): def coro():
return 'done' return 'done'
res = loop.run_until_complete(asyncio.wait_for(coro(), timeout=None, loop=loop)) res = loop.run_until_complete(asyncio.wait_for(coro(),
timeout=None,
loop=loop))
self.assertEqual(res, 'done') self.assertEqual(res, 'done')
def test_wait_for_with_global_loop(self): def test_wait_for_with_global_loop(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment