Skip to content

Commit 4fdc051

Browse files
committed
minor fixes
1 parent 4ea4c43 commit 4fdc051

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/test/test_locale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def test_strcoll(self):
336336
self.assertRaises(ValueError, locale.strcoll, 'a\0', 'a')
337337
self.assertRaises(ValueError, locale.strcoll, 'a', 'a\0')
338338

339-
@unittest.skipIf(sys.platform.startswith('sunos'),
339+
@unittest.skipIf(sys.platform.startswith("sunos"),
340340
"gh-91214: locale.strxfrm doesn't work on Solaris")
341341
def test_strxfrm(self):
342342
self.assertLess(locale.strxfrm('a'), locale.strxfrm('b'))
@@ -371,7 +371,7 @@ def test_strcoll_with_diacritic(self):
371371
@unittest.skipIf(linked_to_musl(), "musl libc issue, bpo-46390")
372372
@unittest.skipIf(sys.platform.startswith("netbsd"),
373373
"gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
374-
@unittest.skipIf(sys.platform.startswith('sunos'),
374+
@unittest.skipIf(sys.platform.startswith("sunos"),
375375
"gh-91214: locale.strxfrm doesn't work on Solaris")
376376
def test_strxfrm_with_diacritic(self):
377377
self.assertLess(locale.strxfrm('à'), locale.strxfrm('b'))

Lib/test/test_re.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import locale
66
import re
77
import string
8+
import sys
89
import unittest
910
import warnings
1011
from re import Scanner

0 commit comments

Comments
 (0)