summaryrefslogtreecommitdiffstats
path: root/Python/pymath.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-30 18:04:42 (GMT)
committerGitHub <noreply@github.com>2022-06-30 18:04:42 (GMT)
commit9ebec7d46cd52fff68507c291fde34fc865acfc4 (patch)
tree2ae4a1829964965e19ae968ccee8bacd92e36d60 /Python/pymath.c
parent7fe949e5eac3efa8bb0cd9e7274380a044a408ea (diff)
downloadcpython-9ebec7d46cd52fff68507c291fde34fc865acfc4.zip
cpython-9ebec7d46cd52fff68507c291fde34fc865acfc4.tar.gz
cpython-9ebec7d46cd52fff68507c291fde34fc865acfc4.tar.bz2
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94460)
The inspect version was not working with unittest.mock.AsyncMock. The fix introduces special-casing of AsyncMock in `inspect.iscoroutinefunction` equivalent to the one performed in `asyncio.iscoroutinefunction`. Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> (cherry picked from commit 4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc) Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions