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.
1 parent fe30a97 commit e6bc8b2Copy full SHA for e6bc8b2
Lib/test/test_calendar.py
@@ -738,8 +738,10 @@ def test_locale_calendar_long_weekday_names(self):
738
abbrev_names = (datetime.date(2001, 1, i+1).strftime('%a') for i in range(7))
739
abbrev_max_length = max(map(len, abbrev_names))
740
741
- if max_length - abbrev_max_length < 3:
742
- self.skipTest('standard and abbreviated weekday names have too similar lengths')
+ if max_length <= 9:
+ self.skipTest('weekday names are too short')
743
+ if abbrev_max_length >= 9:
744
+ self.skipTest('abbreviated weekday names are too long')
745
746
def get_weekday_names(width):
747
return calendar.TextCalendar().formatweekheader(width).split()
0 commit comments