From 0509d9418ab894e4ea0137206685d91a02943577 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Mon, 27 Feb 2012 10:18:51 +0100 Subject: [PATCH] Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL. --- Lib/test/test_format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index dc324af412..d43cea3139 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: -- 2.50.1