cpython/Lib/unittest
Miss Islington (bot) 9ebec7d46c
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 4261b6bffc)

Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
2022-06-30 20:04:42 +02:00
..
test bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
__init__.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
__main__.py
_log.py bpo-41943: Fix bug where assertLogs doesn't correctly filter messages… (GH-22565) 2020-11-02 11:25:29 -08:00
async_case.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
case.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
loader.py bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) 2022-01-26 20:39:15 -08:00
main.py bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) 2022-03-17 16:37:52 -07:00
mock.py gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94460) 2022-06-30 20:04:42 +02:00
result.py bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped from chained exceptions (GH-23688) 2022-03-08 21:43:49 +00:00
runner.py bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) 2022-01-26 20:39:15 -08:00
signals.py
suite.py bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) 2021-08-30 18:25:59 +02:00
util.py