cpython/Lib/unittest
infohash ad0ff86034
[3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119)
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:47:52 +00:00
..
__init__.py Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556) 2022-06-26 10:18:06 +03: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 gh-97837: Change deprecation warning message in unittest (#97838) 2022-10-04 17:29:18 -07:00
case.py [3.12] gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588)" (GH-114470) (GH-114994) 2024-02-04 16:00:56 +00:00
loader.py [3.12] gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497) (#109327) 2023-10-02 16:57:44 +02:00
main.py [3.12] GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856) (#113875) 2024-01-09 13:34:38 -08:00
mock.py [3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119) 2024-03-22 09:47:52 +00:00
result.py [3.12] gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588)" (GH-114470) (GH-114994) 2024-02-04 16:00:56 +00:00
runner.py [3.12] GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856) (#113875) 2024-01-09 13:34:38 -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