summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorinfohash <46137868+infohash@users.noreply.github.com>2024-03-22 09:47:52 (GMT)
committerGitHub <noreply@github.com>2024-03-22 09:47:52 (GMT)
commitad0ff8603432d08fcd9521799e6a38ba941b7e60 (patch)
treeb7bf5086ae33b193830244711805a93f6f012fe0 /Misc
parentd3de3a251efe213155b8996effe235408536d0e0 (diff)
downloadcpython-ad0ff8603432d08fcd9521799e6a38ba941b7e60.zip
cpython-ad0ff8603432d08fcd9521799e6a38ba941b7e60.tar.gz
cpython-ad0ff8603432d08fcd9521799e6a38ba941b7e60.tar.bz2
[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 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-02-27-13-05-51.gh-issue-75988.In6LlB.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-02-27-13-05-51.gh-issue-75988.In6LlB.rst b/Misc/NEWS.d/next/Library/2024-02-27-13-05-51.gh-issue-75988.In6LlB.rst
new file mode 100644
index 0000000..682b7cf
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-02-27-13-05-51.gh-issue-75988.In6LlB.rst
@@ -0,0 +1 @@
+Fixed :func:`unittest.mock.create_autospec` to pass the call through to the wrapped object to return the real result.