Kaydet (Commit) 0509d941 authored tarafından Stefan Krah's avatar Stefan Krah

Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.

üst 6a346dbc
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment