cpython/Lib/test/test_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
..
testmock [3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119) 2024-03-22 09:47:52 +00:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py gh-68968: Correcting message display issue with assertEqual (#103937) 2023-05-04 16:37:17 -06:00
test_async_case.py
test_break.py
test_case.py gh-68968: Correcting message display issue with assertEqual (#103937) 2023-05-04 16:37:17 -06:00
test_discovery.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
test_functiontestcase.py
test_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
test_program.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
test_result.py gh-62432: unittest runner: Exit code 5 if no tests were run (#102051) 2023-04-27 01:28:46 +00:00
test_runner.py [3.12] gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737) (#108006) 2023-08-16 12:13:35 +02:00
test_setups.py
test_skipping.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
test_suite.py