]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix asyncio unittests in debug mode
authorYury Selivanov <yselivanov@sprymix.com>
Wed, 24 Jun 2015 14:45:44 +0000 (10:45 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Wed, 24 Jun 2015 14:45:44 +0000 (10:45 -0400)
Lib/asyncio/coroutines.py

index 896cc560789110c953c3d2891dcd533f2bb297bf..a70eb1dd91bd0b9cd9e5fd563b63fcb98cf6f710 100644 (file)
@@ -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