bpo-36996: Handle async functions when mock.patch is used as a decorator (GH-13562)



Return a coroutine while patching async functions with a decorator. 

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>


https://bugs.python.org/issue36996
3 files changed