diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-09 00:09:10 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-09 00:09:10 +0100 |
commit | 15cc678d8971f5ee1a7ea5e88bcd22413601f033 (patch) | |
tree | ea7e29de0dc1817be74197a19db93957fe3459bf /Lib/test/test_asyncio/test_base_events.py | |
parent | 8d9c145f61d43fb9d43ad43c04744ffd32c93d8c (diff) | |
download | cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.tar.gz cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.zip |
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.py | 9 |
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 6599e4eabdb..6bf7e79607e 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__': |