diff options
author | Xtreak <tir.karthi@gmail.com> | 2019-05-28 07:07:39 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-28 07:07:38 (GMT) |
commit | 436c2b0d67da68465e709a96daac7340af3a5238 (patch) | |
tree | 771d8d39bd772a7aa72640670e247b7e5bb14f6b /Misc/NEWS.d | |
parent | 71dc7c5fbd856df83202f39c1f41ccd07c6eceb7 (diff) | |
download | cpython-436c2b0d67da68465e709a96daac7340af3a5238.zip cpython-436c2b0d67da68465e709a96daac7340af3a5238.tar.gz cpython-436c2b0d67da68465e709a96daac7340af3a5238.tar.bz2 |
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
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-05-22-22-55-18.bpo-36996.XQx08d.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-05-22-22-55-18.bpo-36996.XQx08d.rst b/Misc/NEWS.d/next/Library/2019-05-22-22-55-18.bpo-36996.XQx08d.rst new file mode 100644 index 0000000..69d18d9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-05-22-22-55-18.bpo-36996.XQx08d.rst @@ -0,0 +1 @@ +Handle :func:`unittest.mock.patch` used as a decorator on async functions. |