Skip to content

Commit

Permalink
tests: Update unicode test to remove deprecated resetlocale
Browse files Browse the repository at this point in the history
locale.resetlocale will be removed in Python 3.13, so replace it with a
call to setlocale instead.
  • Loading branch information
bcl committed Aug 8, 2023
1 parent 411b432 commit 64ba81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/handle_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64ba81e

Please sign in to comment.