mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
This commit is contained in:
parent
6a346dbcb7
commit
0509d9418a
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue