diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 14:45:44 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 14:45:44 (GMT) |
commit | 339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a (patch) | |
tree | 030eb42e202044f519818d128844ad53ccb80840 /Lib | |
parent | 29a602a1409cc3f6e64a29865ad9d3624bddd35e (diff) | |
download | cpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.zip cpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.tar.gz cpython-339d5e7d85e6d56e90943ca8940a7e7d0f3f1f6a.tar.bz2 |
Fix asyncio unittests in debug mode
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/coroutines.py | 2 |
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 |