mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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 32f55d1a5d)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
099a94fba3
commit
bcb236c19e
2 changed files with 102 additions and 0 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue