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

This commit is contained in:
Stefan Krah 2012-02-27 10:18:51 +01:00
parent 6a346dbcb7
commit 0509d9418a
1 changed files with 2 additions and 1 deletions

View File

@ -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: