Skip to content

Commit d753a61

Browse files
Skip tests for Iranian and Hijra calendars.
1 parent d34539c commit d753a61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/test/test_strptime.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,14 @@ def test_bad_timezone(self):
485485
# id_ID, ms_MY.
486486
# * Year is not included: ha_NG.
487487
# * Use non-Gregorian calendar: lo_LA, thai, th_TH.
488+
# On Windows: ar_IN, ar_SA, fa_IR, ps_AF.
488489
#
489490
# BUG: Generates regexp that does not match the current date and time
490491
# for lzh_TW.
491492
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
492493
'he_IL', 'eu_ES', 'ar_AE', 'mfe_MU', 'yo_NG',
493494
'csb_PL', 'br_FR', 'gez_ET', 'brx_IN',
494-
'fa_IR', 'my_MM', 'or_IN', 'shn_MM', 'az_IR')
495+
'my_MM', 'or_IN', 'shn_MM', 'az_IR')
495496
def test_date_time_locale(self):
496497
# Test %c directive
497498
loc = locale.getlocale(locale.LC_TIME)[0]
@@ -524,12 +525,12 @@ def test_date_time_locale2(self):
524525
self.roundtrip('%c', slice(0, 6), (1800, 1, 1, 0, 0, 0, 0, 1, 0))
525526

526527
# NB: Does not roundtrip because use non-Gregorian calendar:
527-
# lo_LA, thai, th_TH.
528+
# lo_LA, thai, th_TH. On Windows: ar_IN, ar_SA, fa_IR, ps_AF.
528529
# BUG: Generates regexp that does not match the current date
529530
# for lzh_TW.
530531
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
531532
'he_IL', 'eu_ES', 'ar_AE',
532-
'az_IR', 'fa_IR', 'my_MM', 'or_IN', 'shn_MM')
533+
'az_IR', 'my_MM', 'or_IN', 'shn_MM')
533534
def test_date_locale(self):
534535
# Test %x directive
535536
now = time.time()

0 commit comments

Comments
 (0)