cpython/Lib/unittest
infohash 51da1ddefc
[3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117124)
gh-75988: Fix issues with autospec ignoring wrapped object (#115223)

* set default return value of functional types as _mock_return_value

* added test of wrapping child attributes

* added backward compatibility with explicit return

* added docs on the order of precedence

* added test to check default return_value

(cherry picked from commit 735fc2cbbc)
2024-03-22 09:48:41 +00:00
..
test [3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117124) 2024-03-22 09:48:41 +00:00
__init__.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
__main__.py bpo-29919: Remove unused imports found by pyflakes (#137) 2017-03-27 16:05:26 +02:00
_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 [3.11] gh-97837: Change deprecation warning message in `unittest` (GH-97838) (GH-97887) 2022-10-04 20:55:06 -07:00
case.py [3.11] gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646) (GH-99698) 2022-11-22 19:02:56 +02:00
loader.py [3.11] gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497) (GH-109328) 2023-09-12 14:05:58 +00: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 [3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117124) 2024-03-22 09:48:41 +00:00
result.py gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-98459) 2022-12-04 12:06:42 -08: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 bpo-32360: unittest.util: Use Counter instead of custom count function (GH-4994) 2018-01-24 16:49:58 +09:00