Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
This commit is contained in:
parent
6a346dbcb7
commit
0509d9418a
|
@ -285,7 +285,8 @@ class FormatTest(unittest.TestCase):
|
|||
|
||||
def test_locale(self):
|
||||
try:
|
||||
oldloc = locale.setlocale(locale.LC_ALL, '')
|
||||
oldloc = locale.setlocale(locale.LC_ALL)
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except locale.Error as err:
|
||||
self.skipTest("Cannot set locale: {}".format(err))
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue