cpython/Lib/test/test_unittest/testmock
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
__main__.py
support.py
testasync.py [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
testcallable.py
testhelpers.py
testmagicmethods.py
testmock.py [3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119) 2024-03-22 09:47:52 +00:00
testpatch.py [3.12] gh-115274: Fix direct invocation of testmock/testpatch.py (GH-115275) (#115280) 2024-02-11 12:14:37 +03:00
testsealable.py
testsentinel.py
testwith.py