SIGN IN SIGN UP

bpo-39679: Add tests for classmethod/staticmethod singledispatchmethods (GH-29034)

In Python 3.8 and 3.9, stacking `@functools.singledispatchmethod` on top of
`@classmethod` or `@staticmethod` caused an exception to be raised if the
method was registered using type-annotations rather than
`@method.register(int)`. This was not caught by unit tests, however, as the
tests only tested the `@method.register(int)` way of registering additional
implementations. The bug is no longer present in Python 3.10+, but
`test_functools.py` is still lacking regression tests for these cases. This
commit adds these test cases.
A
Alex Waygood committed
ad6d162e518963711d24c80f1b7d6079bd437584
Parent: f4b1244
Committed by GitHub <noreply@github.com> on 10/19/2021, 8:30:27 PM