From: Benjamin Peterson Date: Wed, 8 Mar 2017 07:56:52 +0000 (-0800) Subject: Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#556) X-Git-Tag: v3.5.4rc1~293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=312f7dfb7c669fcfc43020951b7f8ff521200ad7;p=thirdparty%2FPython%2Fcpython.git Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#556) This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4. --- diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 407f3468e866..9acd5abbfd77 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1334,7 +1334,7 @@ class ReTests(unittest.TestCase): def test_locale_flag(self): import locale - enc = locale.getpreferredencoding(False) + _, enc = locale.getlocale(locale.LC_CTYPE) # Search non-ASCII letter for i in range(128, 256): try: