summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-24 14:32:22 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-06-24 14:32:22 (GMT)
commit8f1c99321bfe72d21b01bad71293a7daa1c9e73f (patch)
treeef5c6e72f6bf848363e740a3cf2dd1f83cf9b10c /Lib/test/test_asyncio/test_tasks.py
parent3bdbcedfd948bf66a3e2bdaf8180c8e7a262db5f (diff)
parent29a602a1409cc3f6e64a29865ad9d3624bddd35e (diff)
downloadcpython-8f1c99321bfe72d21b01bad71293a7daa1c9e73f.zip
cpython-8f1c99321bfe72d21b01bad71293a7daa1c9e73f.tar.gz
cpython-8f1c99321bfe72d21b01bad71293a7daa1c9e73f.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.py3
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'