cpython
cpython copied to clipboard
[3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223)
-
Added a condition to take wraps into consideration when autospeccing objects
-
Added test cases to test wraps of a class, a class instance and a function type
-
Added order of precedence of side_effect, return_value and wraps in docs
(cherry picked from commit 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
- Issue: gh-75988
📚 Documentation preview 📚: https://cpython-previews--117124.org.readthedocs.build/