summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-02-27 09:18:51 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-02-27 09:18:51 (GMT)
commit0509d9418ab894e4ea0137206685d91a02943577 (patch)
treefc142dc98779e7fa251e9a7f2c1f853ee5d6b27f /Lib
parent6a346dbcb7307650f16e35a1a59a15c6e937e908 (diff)
downloadcpython-0509d9418ab894e4ea0137206685d91a02943577.zip
cpython-0509d9418ab894e4ea0137206685d91a02943577.tar.gz
cpython-0509d9418ab894e4ea0137206685d91a02943577.tar.bz2
Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index dc324af..d43cea3 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: