mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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
|
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| __main__.py | ||
| _log.py | ||
| async_case.py | ||
| case.py | ||
| loader.py | ||
| main.py | ||
| mock.py | ||
| result.py | ||
| runner.py | ||
| signals.py | ||
| suite.py | ||
| util.py | ||