@@ -546,17 +546,20 @@ def test_locale_calendars(self):
546
546
# (it is still not thread-safe though)
547
547
old_october = calendar .TextCalendar ().formatmonthname (2010 , 10 , 10 )
548
548
try :
549
- cal = calendar .LocaleTextCalendar (locale = '' )
549
+ cal = calendar .LocaleTextCalendar (locale = None )
550
550
local_weekday = cal .formatweekday (1 , 10 )
551
+ local_weekday_abbr = cal .formatweekday (1 , 3 )
551
552
local_month = cal .formatmonthname (2010 , 10 , 10 )
552
553
except locale .Error :
553
554
# cannot set the system default locale -- skip rest of test
554
555
raise unittest .SkipTest ('cannot set the system default locale' )
555
556
self .assertIsInstance (local_weekday , str )
557
+ self .assertIsInstance (local_weekday_abbr , str )
556
558
self .assertIsInstance (local_month , str )
557
559
self .assertEqual (len (local_weekday ), 10 )
560
+ self .assertEqual (len (local_weekday_abbr ), 3 )
558
561
self .assertGreaterEqual (len (local_month ), 10 )
559
- cal = calendar .LocaleHTMLCalendar (locale = '' )
562
+ cal = calendar .LocaleHTMLCalendar (locale = None )
560
563
local_weekday = cal .formatweekday (1 )
561
564
local_month = cal .formatmonthname (2010 , 10 )
562
565
self .assertIsInstance (local_weekday , str )
0 commit comments