Skip to content

Commit 0aa0caf

Browse files
committed
pythongh-69417: Include cases with odd widths in formatmonthname
1 parent 1558845 commit 0aa0caf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_calendar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ def test_locale_calendar_formatmonthname(self):
647647
# For too short widths, a full name (with year) is used.
648648
self.assertEqual(cal.formatmonthname(2022, 6, 2, withyear=False), "June")
649649
self.assertEqual(cal.formatmonthname(2022, 6, 2, withyear=True), "June 2022")
650+
self.assertEqual(cal.formatmonthname(2022, 6, 3, withyear=False), "June")
651+
self.assertEqual(cal.formatmonthname(2022, 6, 3, withyear=True), "June 2022")
650652
# For long widths, a centered name is used.
651653
self.assertEqual(cal.formatmonthname(2022, 6, 10, withyear=False), " June ")
652654
self.assertEqual(cal.formatmonthname(2022, 6, 15, withyear=True), " June 2022 ")

0 commit comments

Comments
 (0)