cpython icon indicating copy to clipboard operation
cpython copied to clipboard

[3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223)

Open infohash opened this issue 1 year ago • 0 comments

  • 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/

infohash avatar Mar 21 '24 14:03 infohash