Skip to content

Commit abcbb93

Browse files
Skip the crashing tests on Windows.
1 parent 853cfbd commit abcbb93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_locale.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from unittest import mock
77
import unittest
88
import locale
9+
import os
910
import sys
1011
import codecs
1112

@@ -555,6 +556,9 @@ def test_getsetlocale_issue1813(self):
555556
('uz_UZ.UTF-8@cyrillic', ('uz_UZ@cyrillic', None)),
556557
])
557558
def test_setlocale_with_modifier(self, localename, localetuple):
559+
if os.name == 'nt' and localename in ('ks_IN.UTF-8@devanagari',
560+
'sd_IN.UTF-8@devanagari'):
561+
self.skipTest('gh-137273: crashes on Windows')
558562
try:
559563
locale.setlocale(locale.LC_CTYPE, localename)
560564
except locale.Error as exc:
@@ -602,6 +606,9 @@ def test_setlocale_with_modifier(self, localename, localetuple):
602606
('uz_UZ@cyrillic', ('uz_UZ@cyrillic', 'UTF-8')),
603607
])
604608
def test_getlocale_with_modifier(self, localename, localetuple):
609+
if os.name == 'nt' and localename in ('ks_IN.UTF-8@devanagari',
610+
'sd_IN.UTF-8@devanagari'):
611+
self.skipTest('gh-137273: crashes on Windows')
605612
try:
606613
locale.setlocale(locale.LC_CTYPE, localename)
607614
except locale.Error as exc:

0 commit comments

Comments
 (0)