diff --git a/tests/handle_unicode.py b/tests/handle_unicode.py index 1889c004..820c8181 100644 --- a/tests/handle_unicode.py +++ b/tests/handle_unicode.py @@ -23,7 +23,7 @@ def runTest(self): # pylint: disable=environment-modify # Make sure the locale is reset so that the traceback could happen del os.environ["LANG"] - locale.resetlocale() + locale.setlocale(locale.LC_ALL, "") # parser should parse string including non-ascii characters self.parser.readKickstartFromString(self.ks)