[issue32972] unittest.TestCase coroutine support

Petter S report at bugs.python.org
Tue Mar 6 14:34:20 EST 2018


Petter S <petter.strandmark at gmail.com> added the comment:

> Also, I personally subclassed TestCase in many of my projects specifically to add async support.  To do that you have to use a metaclass to scan class' namespace for 'async def' functions.

Doesn't that break when, for example, test methods are decorated with unittest.mock.patch?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32972>
_______________________________________


More information about the Python-bugs-list mailing list