summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-09 00:09:10 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-09 00:09:10 +0100
commit5676a36b044ef8071df818c5c85d8d04fc4493c9 (patch)
treea8dfb3facef7bfdc519be451b7e13c6acea5f6a3 /Lib/test/test_asyncio/test_base_events.py
parentbd57456b95f3441f3176abf14400408e0d259c99 (diff)
downloadcpython-5676a36b044ef8071df818c5c85d8d04fc4493c9.tar.gz
asyncio: Truncate to 80 columns
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 6599e4eabd..6bf7e79607 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -285,7 +285,8 @@ class BaseEventLoopTests(test_utils.TestCase):
@mock.patch('asyncio.base_events.logger')
def test__run_once_logging(self, m_logger):
def slow_select(timeout):
- # Sleep a bit longer than a second to avoid timer resolution issues.
+ # Sleep a bit longer than a second to avoid timer resolution
+ # issues.
time.sleep(1.1)
return []
@@ -1217,14 +1218,16 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
self.loop.run_forever()
fmt, *args = m_logger.warning.call_args[0]
self.assertRegex(fmt % tuple(args),
- "^Executing <Handle.*stop_loop_cb.*> took .* seconds$")
+ "^Executing <Handle.*stop_loop_cb.*> "
+ "took .* seconds$")
# slow task
asyncio.async(stop_loop_coro(self.loop), loop=self.loop)
self.loop.run_forever()
fmt, *args = m_logger.warning.call_args[0]
self.assertRegex(fmt % tuple(args),
- "^Executing <Task.*stop_loop_coro.*> took .* seconds$")
+ "^Executing <Task.*stop_loop_coro.*> "
+ "took .* seconds$")
if __name__ == '__main__':