mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #24400: Fix CoroWrapper for 'async def' coroutines
This commit is contained in:
parent
dfbd27f0be
commit
29a602a140
2 changed files with 42 additions and 11 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue