mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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):
|
if isinstance(coro, CoroWrapper):
|
||||||
func = coro.func
|
func = coro.func
|
||||||
coro_name = coro.__qualname__
|
coro_name = coro.__qualname__
|
||||||
|
if coro_name is not None:
|
||||||
|
coro_name = '{}()'.format(coro_name)
|
||||||
else:
|
else:
|
||||||
func = coro
|
func = coro
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue