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 belopolsky, p-ganssle, ta1hia
Date 2019-09-13.11:58:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568375902.61.0.419726640404.issue38155@roundup.psfhosted.org>
In-reply-to
Content
Actually, how about adding this simpler test into `Lib/test/datetimetester.py`, right above test_name_cleanup (https://github.com/python/cpython/blob/ff2e18286560e981f4e09afb0d2448ea994414d8/Lib/test/datetimetester.py#L65):

    def test_all(self):
        """Test that __all__ only points to valid attributes."""
        all_attrs = dir(datetime_module)
        for attr in datetime_module.__all__:
            self.assertIn(attr, all_attrs)

This will at least test that __all__ only contains valid attributes on the module.
History
Date User Action Args
2019-09-13 11:58:22p-gansslesetrecipients: + p-ganssle, belopolsky, ta1hia
2019-09-13 11:58:22p-gansslesetmessageid: <1568375902.61.0.419726640404.issue38155@roundup.psfhosted.org>
2019-09-13 11:58:22p-gansslelinkissue38155 messages
2019-09-13 11:58:22p-gansslecreate