Browse Source

Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.

pull/2332/head
Stefan Krah 15 years ago
parent
commit
0509d9418a
  1. 3
      Lib/test/test_format.py

3
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:

Loading…
Cancel
Save