Commit 4eb376c4 authored by Martin Panter's avatar Martin Panter

Issue #23883: Add missing APIs to calendar.__all__

Patch by Joel Taddei and Jacek Kołodziej.
parent 7978e104
...@@ -12,7 +12,9 @@ import locale as _locale ...@@ -12,7 +12,9 @@ import locale as _locale
__all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday", __all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday",
"firstweekday", "isleap", "leapdays", "weekday", "monthrange", "firstweekday", "isleap", "leapdays", "weekday", "monthrange",
"monthcalendar", "prmonth", "month", "prcal", "calendar", "monthcalendar", "prmonth", "month", "prcal", "calendar",
"timegm", "month_name", "month_abbr", "day_name", "day_abbr"] "timegm", "month_name", "month_abbr", "day_name", "day_abbr",
"Calendar", "TextCalendar", "HTMLCalendar", "LocaleTextCalendar",
"LocaleHTMLCalendar", "weekheader"]
# Exception raised for bad input (with string parameter for details) # Exception raised for bad input (with string parameter for details)
error = ValueError error = ValueError
......
...@@ -815,5 +815,14 @@ class CommandLineTestCase(unittest.TestCase): ...@@ -815,5 +815,14 @@ class CommandLineTestCase(unittest.TestCase):
b'href="custom.css" />', stdout) b'href="custom.css" />', stdout)
class MiscTestCase(unittest.TestCase):
def test__all__(self):
blacklist = {'error', 'mdays', 'January', 'February', 'EPOCH',
'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY',
'SATURDAY', 'SUNDAY', 'different_locale', 'c',
'prweek', 'week', 'format', 'formatstring', 'main'}
support.check__all__(self, calendar, blacklist=blacklist)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
...@@ -1419,6 +1419,7 @@ Péter Szabó ...@@ -1419,6 +1419,7 @@ Péter Szabó
John Szakmeister John Szakmeister
Amir Szekely Amir Szekely
Maciej Szulik Maciej Szulik
Joel Taddei
Arfrever Frehtes Taifersar Arahesis Arfrever Frehtes Taifersar Arahesis
Hideaki Takahashi Hideaki Takahashi
Takase Arihiro Takase Arihiro
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment