mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
asyncio: Fix misc whitespace issues.
This commit is contained in:
parent
1c16537327
commit
a849be9c64
3 changed files with 15 additions and 13 deletions
|
@ -14,6 +14,7 @@ from . import tasks
|
|||
|
||||
_DEFAULT_LIMIT = 2**16
|
||||
|
||||
|
||||
class IncompleteReadError(EOFError):
|
||||
"""
|
||||
Incomplete read error. Attributes:
|
||||
|
|
|
@ -379,7 +379,6 @@ class TaskTests(unittest.TestCase):
|
|||
self.assertAlmostEqual(0.1, loop.time())
|
||||
self.assertEqual(foo_running, False)
|
||||
|
||||
|
||||
def test_wait_for_blocking(self):
|
||||
loop = test_utils.TestLoop()
|
||||
self.addCleanup(loop.close)
|
||||
|
@ -388,7 +387,9 @@ class TaskTests(unittest.TestCase):
|
|||
def coro():
|
||||
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')
|
||||
|
||||
def test_wait_for_with_global_loop(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue