]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94924: support `inspect.iscoroutinefunction` in `create_autospec(async_def)` ...
authorThomas Grainger <tagrain@gmail.com>
Fri, 9 Jun 2023 13:29:09 +0000 (14:29 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 13:29:09 +0000 (13:29 +0000)
commit9bf8d825a66ea2a76169b917c12c237a6af2ed75
tree03c736e98430b87b7c58bc76c67ee36d1e681046
parent0f885ffa94aa9b69ff556e119cb17deb23a5a4b3
gh-94924: support `inspect.iscoroutinefunction` in `create_autospec(async_def)` (#94962)

* support inspect.iscoroutinefunction in create_autospec(async_def)

* test create_autospec with inspect.iscoroutine and inspect.iscoroutinefunction

* test when create_autospec functions check their signature
Lib/test/test_unittest/testmock/testasync.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2022-07-18-14-20-56.gh-issue-94924.X0buz2.rst [new file with mode: 0644]