mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Fix asyncio unittests in debug mode
This commit is contained in:
parent
29a602a140
commit
339d5e7d85
1 changed files with 2 additions and 0 deletions
|
@ -252,6 +252,8 @@ def _format_coroutine(coro):
|
|||
if isinstance(coro, CoroWrapper):
|
||||
func = coro.func
|
||||
coro_name = coro.__qualname__
|
||||
if coro_name is not None:
|
||||
coro_name = '{}()'.format(coro_name)
|
||||
else:
|
||||
func = coro
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue