We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
calendar.Locale{Text|HTML}Calendar(locale='')
1 parent 78935da commit 0dd6321Copy full SHA for 0dd6321
Lib/test/test_calendar.py
@@ -562,10 +562,13 @@ def test_locale_calendars(self):
562
563
cal = calendar.LocaleTextCalendar(locale='')
564
local_weekday = cal.formatweekday(1, 10)
565
+ local_weekday_abbr = cal.formatweekday(1, 3)
566
local_month = cal.formatmonthname(2010, 10, 10)
567
self.assertIsInstance(local_weekday, str)
568
+ self.assertIsInstance(local_weekday_abbr, str)
569
self.assertIsInstance(local_month, str)
570
self.assertEqual(len(local_weekday), 10)
571
+ self.assertEqual(len(local_weekday_abbr), 3)
572
self.assertGreaterEqual(len(local_month), 10)
573
574
cal = calendar.LocaleHTMLCalendar(locale=None)
0 commit comments