This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, lukasz.langa, rhettinger
Date 2021-10-30.12:10:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635595831.41.0.152210084078.issue45678@roundup.psfhosted.org>
In-reply-to
Content
`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.
History
Date User Action Args
2021-10-30 12:10:31AlexWaygoodsetrecipients: + AlexWaygood, rhettinger, lukasz.langa
2021-10-30 12:10:31AlexWaygoodsetmessageid: <1635595831.41.0.152210084078.issue45678@roundup.psfhosted.org>
2021-10-30 12:10:31AlexWaygoodlinkissue45678 messages
2021-10-30 12:10:31AlexWaygoodcreate