@@ -515,12 +515,17 @@ def test_date_time_locale(self):
515
515
516
516
# NB: Dates before 1969 do not roundtrip on some locales:
517
517
# az_IR, bo_CN, bo_IN, dz_BT, eu_ES, eu_FR, fa_IR, or_IN.
518
+ @support .run_with_tz ('STD-1DST,M4.1.0,M10.1.0' )
518
519
@run_with_locales ('LC_TIME' , 'C' , 'en_US' , 'fr_FR' , 'de_DE' , 'ja_JP' ,
519
520
'he_IL' , 'ar_AE' , 'mfe_MU' , 'yo_NG' ,
520
521
'csb_PL' , 'br_FR' , 'gez_ET' , 'brx_IN' ,
521
522
'my_MM' , 'shn_MM' )
522
523
def test_date_time_locale2 (self ):
523
524
# Test %c directive
525
+ loc = locale .getlocale (locale .LC_TIME )[0 ]
526
+ if sys .platform .startswith ('sunos' ):
527
+ if loc in ('ar_AE' ,):
528
+ self .skipTest (f'locale { loc !r} may not work on this platform' )
524
529
self .roundtrip ('%c' , slice (0 , 6 ), (1900 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 ))
525
530
self .roundtrip ('%c' , slice (0 , 6 ), (1800 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 ))
526
531
@@ -553,6 +558,10 @@ def test_date_locale(self):
553
558
'eu_ES' , 'ar_AE' , 'my_MM' , 'shn_MM' )
554
559
def test_date_locale2 (self ):
555
560
# Test %x directive
561
+ loc = locale .getlocale (locale .LC_TIME )[0 ]
562
+ if sys .platform .startswith ('sunos' ):
563
+ if loc in ('en_US' , 'de_DE' , 'ar_AE' ):
564
+ self .skipTest (f'locale { loc !r} may not work on this platform' )
556
565
self .roundtrip ('%x' , slice (0 , 3 ), (1900 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 ))
557
566
self .roundtrip ('%x' , slice (0 , 3 ), (1800 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 ))
558
567
0 commit comments