SIGN IN SIGN UP

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>
M
Mehdi ABAAKOUK committed
4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc
Parent: 639e351
Committed by GitHub <noreply@github.com> on 6/30/2022, 5:08:38 PM