Skip to content

Commit e6bc8b2

Browse files
don't change the original purpose of the test
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent fe30a97 commit e6bc8b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_calendar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,10 @@ def test_locale_calendar_long_weekday_names(self):
738738
abbrev_names = (datetime.date(2001, 1, i+1).strftime('%a') for i in range(7))
739739
abbrev_max_length = max(map(len, abbrev_names))
740740

741-
if max_length - abbrev_max_length < 3:
742-
self.skipTest('standard and abbreviated weekday names have too similar lengths')
741+
if max_length <= 9:
742+
self.skipTest('weekday names are too short')
743+
if abbrev_max_length >= 9:
744+
self.skipTest('abbreviated weekday names are too long')
743745

744746
def get_weekday_names(width):
745747
return calendar.TextCalendar().formatweekheader(width).split()

0 commit comments

Comments
 (0)