summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-24 14:45:44 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-06-24 14:45:44 (GMT)
commit339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a (patch)
tree030eb42e202044f519818d128844ad53ccb80840
parent29a602a1409cc3f6e64a29865ad9d3624bddd35e (diff)
downloadcpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.zip
cpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.tar.gz
cpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.tar.bz2
Fix asyncio unittests in debug mode
-rw-r--r--Lib/asyncio/coroutines.py2
1 files changed, 2 insertions, 0 deletions
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