Message405366
`test_functools` includes a test to check that `functools.singledispatch` correctly wraps the attributes of the target function. However, there is no equivalent test for `functools.singledispatchmethod`. There should be, as this is done separately in the `__get__` method of `functools.singledispatchmethod`; it is a different mechanism to `functools.singledispatch`.
Additionally, `test_abstractmethod_register` tests that the return value of `singledispatchmethod.__get__` wraps the target function's `__isabstractmethod__` attribute. However, the `__isabstractmethod__` property of the `singledispatchmethod` class is untested. |
|
Date |
User |
Action |
Args |
2021-10-30 12:10:31 | AlexWaygood | set | recipients:
+ AlexWaygood, rhettinger, lukasz.langa |
2021-10-30 12:10:31 | AlexWaygood | set | messageid: <1635595831.41.0.152210084078.issue45678@roundup.psfhosted.org> |
2021-10-30 12:10:31 | AlexWaygood | link | issue45678 messages |
2021-10-30 12:10:31 | AlexWaygood | create | |
|