]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Nov 2021 15:27:22 +0000 (08:27 -0700)
committerGitHub <noreply@github.com>
Fri, 5 Nov 2021 15:27:22 +0000 (16:27 +0100)
commitbcb236c19e4ddf5ccf0fc45ab541eabf1f757a64
tree8b0b871eb020cb7ea68485949163db8ae7feb3e4
parent099a94fba3f9437e29d16ed54215ec8cf65de868
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>
Lib/test/test_functools.py
Misc/NEWS.d/next/Tests/2021-11-04-20-03-32.bpo-45678.1xNMjN.rst [new file with mode: 0644]