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