asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__
authorYury Selivanov <yury@magic.io>
Wed, 9 Nov 2016 00:16:01 +0000 (19:16 -0500)
committerYury Selivanov <yury@magic.io>
Wed, 9 Nov 2016 00:16:01 +0000 (19:16 -0500)
commit6cc495e9e2db8de0b8b7d95323d3a1514844b1b4
tree53ad200923868483dd72cee032bb1050d297870f
parent70b72f0f96d0a78e7cb154ae64356c82d06ac901
asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__

Some built-in coroutine-like objects might not have __name__ or
__qualname__. A good example of such are 'asend', 'aclose' and
'athrow' coroutine methods of asynchronous generators.
Lib/asyncio/coroutines.py
Lib/test/test_asyncio/test_events.py