Issue #24400: Fix CoroWrapper for 'async def' coroutines

This commit is contained in:
Yury Selivanov 2015-06-24 10:30:14 -04:00
parent dfbd27f0be
commit 29a602a140
2 changed files with 42 additions and 11 deletions

View file

@ -1715,7 +1715,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, .*> '
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'