diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-05 23:21:04 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-05 14:21:04 -0600 |
| commit | e5894ca8fd05e6a6df1033025b9093b68baa718d (patch) | |
| tree | f3bf224641177a2ed8ccad3b6590633daecfb16f /Lib | |
| parent | 817a6bc9f7b802511c4d42273a621c556a48870b (diff) | |
| download | cpython-git-e5894ca8fd05e6a6df1033025b9093b68baa718d.tar.gz | |
bpo-46266: Add calendar day of week constants to __all__ (GH-30412)
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/calendar.py | 4 | ||||
| -rw-r--r-- | Lib/test/test_calendar.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py index 663bb946b0..06c65a80cd 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -15,7 +15,9 @@ __all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday", "monthcalendar", "prmonth", "month", "prcal", "calendar", "timegm", "month_name", "month_abbr", "day_name", "day_abbr", "Calendar", "TextCalendar", "HTMLCalendar", "LocaleTextCalendar", - "LocaleHTMLCalendar", "weekheader"] + "LocaleHTMLCalendar", "weekheader", + "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", + "SATURDAY", "SUNDAY"] # Exception raised for bad input (with string parameter for details) error = ValueError diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index c641e8c418..39094ad6fd 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -935,8 +935,7 @@ class CommandLineTestCase(unittest.TestCase): class MiscTestCase(unittest.TestCase): def test__all__(self): not_exported = { - 'mdays', 'January', 'February', 'EPOCH', 'MONDAY', 'TUESDAY', - 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY', + 'mdays', 'January', 'February', 'EPOCH', 'different_locale', 'c', 'prweek', 'week', 'format', 'formatstring', 'main', 'monthlen', 'prevmonth', 'nextmonth'} support.check__all__(self, calendar, not_exported=not_exported) |
