diff options
-rw-r--r-- | Lib/test/test_format.py | 3 |
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: |