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 | 5676a36b044ef8071df818c5c85d8d04fc4493c9 (patch) | |
tree | a8dfb3facef7bfdc519be451b7e13c6acea5f6a3 /Lib/test/test_asyncio/test_base_events.py | |
parent | bd57456b95f3441f3176abf14400408e0d259c99 (diff) | |
download | cpython-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.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 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__': |