diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-08 23:09:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-08 23:09:10 (GMT) |
commit | 15cc678d8971f5ee1a7ea5e88bcd22413601f033 (patch) | |
tree | ea7e29de0dc1817be74197a19db93957fe3459bf /Lib/test/test_asyncio/test_tasks.py | |
parent | 8d9c145f61d43fb9d43ad43c04744ffd32c93d8c (diff) | |
download | cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.zip cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.tar.gz cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.tar.bz2 |
asyncio: Truncate to 80 columns
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 1520fb4..7807dc0 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -208,7 +208,8 @@ class TaskTests(test_utils.TestCase): self.assertEqual(notmuch.__name__, 'notmuch') if PY35: self.assertEqual(notmuch.__qualname__, - 'TaskTests.test_task_repr_coro_decorator.<locals>.notmuch') + 'TaskTests.test_task_repr_coro_decorator' + '.<locals>.notmuch') self.assertEqual(notmuch.__module__, __name__) # test coroutine object @@ -218,7 +219,8 @@ class TaskTests(test_utils.TestCase): # function, as expected, and have a qualified name (__qualname__ # attribute). coro_name = 'notmuch' - coro_qualname = 'TaskTests.test_task_repr_coro_decorator.<locals>.notmuch' + coro_qualname = ('TaskTests.test_task_repr_coro_decorator' + '.<locals>.notmuch') else: # On Python < 3.5, generators inherit the name of the code, not of # the function. See: http://bugs.python.org/issue21205 @@ -239,7 +241,8 @@ class TaskTests(test_utils.TestCase): else: code = gen.gi_code coro = ('%s() running at %s:%s' - % (coro_qualname, code.co_filename, code.co_firstlineno)) + % (coro_qualname, code.co_filename, + code.co_firstlineno)) self.assertEqual(repr(gen), '<CoroWrapper %s>' % coro) @@ -1678,7 +1681,8 @@ class TaskTests(test_utils.TestCase): self.assertTrue(m_log.error.called) message = m_log.error.call_args[0][0] func_filename, func_lineno = test_utils.get_function_source(coro_noop) - regex = (r'^<CoroWrapper %s\(\) .* at %s:%s, .*> was never yielded from\n' + regex = (r'^<CoroWrapper %s\(\) .* at %s:%s, .*> ' + r'was never yielded from\n' r'Coroutine object created at \(most recent call last\):\n' r'.*\n' r' File "%s", line %s, in test_coroutine_never_yielded\n' |