Skip to content

Commit 0dd6321

Browse files
committed
gh-69714: Increase test coverage for calendar.Locale{Text|HTML}Calendar(locale='')
1 parent 78935da commit 0dd6321

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_calendar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,13 @@ def test_locale_calendars(self):
562562

563563
cal = calendar.LocaleTextCalendar(locale='')
564564
local_weekday = cal.formatweekday(1, 10)
565+
local_weekday_abbr = cal.formatweekday(1, 3)
565566
local_month = cal.formatmonthname(2010, 10, 10)
566567
self.assertIsInstance(local_weekday, str)
568+
self.assertIsInstance(local_weekday_abbr, str)
567569
self.assertIsInstance(local_month, str)
568570
self.assertEqual(len(local_weekday), 10)
571+
self.assertEqual(len(local_weekday_abbr), 3)
569572
self.assertGreaterEqual(len(local_month), 10)
570573

571574
cal = calendar.LocaleHTMLCalendar(locale=None)

0 commit comments

Comments
 (0)