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 p-ganssle
Recipients p-ganssle
Date 2020-06-18.14:26:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592490411.18.0.433446521396.issue41025@roundup.psfhosted.org>
In-reply-to
Content
In the C implementation of zoneinfo.ZoneInfo, __init_subclass__ is not declared as a classmethod, which prevents it from being subclassed. This was not noticed because the tests for ZoneInfo subclasses in C are actually testing zoneinfo.ZoneInfo, not a subclass, due to a mistake in the inheritance tree: https://github.com/python/cpython/blob/8f192d12af82c4dc40730bf59814f6a68f68f950/Lib/test/test_zoneinfo/test_zoneinfo.py#L465-L487


Originally reported on the backport by Sébastien Eustace: https://github.com/pganssle/zoneinfo/issues/82

The fix in the backport is here: https://github.com/pganssle/zoneinfo/pull/83
History
Date User Action Args
2020-06-18 14:26:51p-gansslesetrecipients: + p-ganssle
2020-06-18 14:26:51p-gansslesetmessageid: <1592490411.18.0.433446521396.issue41025@roundup.psfhosted.org>
2020-06-18 14:26:51p-gansslelinkissue41025 messages
2020-06-18 14:26:51p-gansslecreate