SIGN IN SIGN UP

[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 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
I
infohash committed
51da1ddefc74354cfb353db7f61ea7bb6298b332
Parent: 0ec8561
Committed by GitHub <noreply@github.com> on 3/22/2024, 9:48:41 AM