From 339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 24 Jun 2015 10:45:44 -0400 Subject: Fix asyncio unittests in debug mode --- Lib/asyncio/coroutines.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index 896cc56..a70eb1d 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -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 -- cgit v0.12