From: Yury Selivanov Date: Wed, 24 Jun 2015 14:45:44 +0000 (-0400) Subject: Fix asyncio unittests in debug mode X-Git-Tag: v3.5.0b3~50^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a;p=thirdparty%2FPython%2Fcpython.git Fix asyncio unittests in debug mode --- diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index 896cc5607891..a70eb1dd91bd 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