diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 14:30:14 (GMT) | 
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 14:30:14 (GMT) | 
| commit | 29a602a1409cc3f6e64a29865ad9d3624bddd35e (patch) | |
| tree | d9952669c41f8bc1f8255bf2f8e0eacd07e4589f /Lib/test/test_asyncio/test_tasks.py | |
| parent | dfbd27f0bef392ebebe1116c8e7f9234f50f1e92 (diff) | |
| download | cpython-29a602a1409cc3f6e64a29865ad9d3624bddd35e.zip cpython-29a602a1409cc3f6e64a29865ad9d3624bddd35e.tar.gz cpython-29a602a1409cc3f6e64a29865ad9d3624bddd35e.tar.bz2  | |
Issue #24400: Fix CoroWrapper for 'async def' coroutines
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 6541df7..251192a 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -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'  | 
