From: Stefan Krah Date: Mon, 27 Feb 2012 09:18:51 +0000 (+0100) Subject: Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL. X-Git-Tag: v3.3.0a1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0509d9418ab894e4ea0137206685d91a02943577;p=thirdparty%2FPython%2Fcpython.git Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL. --- diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index dc324af41293..d43cea313940 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -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: