Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0509d94

Browse files
author
Stefan Krah
committed
Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
1 parent 6a346db commit 0509d94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ def test_non_ascii(self):
285285

286286
def test_locale(self):
287287
try:
288-
oldloc = locale.setlocale(locale.LC_ALL, '')
288+
oldloc = locale.setlocale(locale.LC_ALL)
289+
locale.setlocale(locale.LC_ALL, '')
289290
except locale.Error as err:
290291
self.skipTest("Cannot set locale: {}".format(err))
291292
try:

0 commit comments

Comments
 (0)