summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-11-05 15:27:22 (GMT)
committerGitHub <noreply@github.com>2021-11-05 15:27:22 (GMT)
commitbcb236c19e4ddf5ccf0fc45ab541eabf1f757a64 (patch)
tree8b0b871eb020cb7ea68485949163db8ae7feb3e4 /Misc/NEWS.d
parent099a94fba3f9437e29d16ed54215ec8cf65de868 (diff)
downloadcpython-bcb236c19e4ddf5ccf0fc45ab541eabf1f757a64.zip
cpython-bcb236c19e4ddf5ccf0fc45ab541eabf1f757a64.tar.gz
cpython-bcb236c19e4ddf5ccf0fc45ab541eabf1f757a64.tar.bz2
bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)
In order to fix a bug in the 3.9 branch in GH-29394, more tests were added to ``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly wrapped a target method, even if the target method had already been wrapped by multiple other decorators. This PR brings the new tests into the 3.11 and 3.10 branches as well. (cherry picked from commit 32f55d1a5de66f9a86964fc0655d7a006a9d90b9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Tests/2021-11-04-20-03-32.bpo-45678.1xNMjN.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2021-11-04-20-03-32.bpo-45678.1xNMjN.rst b/Misc/NEWS.d/next/Tests/2021-11-04-20-03-32.bpo-45678.1xNMjN.rst
new file mode 100644
index 0000000..736d5f6
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2021-11-04-20-03-32.bpo-45678.1xNMjN.rst
@@ -0,0 +1,3 @@
+Add tests for scenarios in which :class:`functools.singledispatchmethod` is
+stacked on top of a method that has already been wrapped by two other
+decorators. Patch by Alex Waygood.