diff options
author | Mehdi ABAAKOUK <sileht@sileht.net> | 2022-06-30 17:08:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 17:08:38 (GMT) |
commit | 4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc (patch) | |
tree | 004df1f1a95ed6113b55ab0f92d3e66b405fd424 /Lib/asyncio/taskgroups.py | |
parent | 639e35108bc8b2b880225862d3571277ad57648b (diff) | |
download | cpython-4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc.zip cpython-4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc.tar.gz cpython-4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc.tar.bz2 |
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (#94050)
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>
Diffstat (limited to 'Lib/asyncio/taskgroups.py')
0 files changed, 0 insertions, 0 deletions