summaryrefslogtreecommitdiff
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-07 22:48:09 -0800
committerGitHub <noreply@github.com>2017-03-07 22:48:09 -0800
commit21a74312f2d1ddee71fade709af49d078085ec30 (patch)
tree4b9024121286fc12c97cb329f39d3d8620067721 /Lib/test/test_re.py
parentad4a0cc519a5bb14204324e0e32e976318f9e6ce (diff)
downloadcpython-git-21a74312f2d1ddee71fade709af49d078085ec30.tar.gz
Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554)
This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 92d2c1386d..1d7fb76c38 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -1399,7 +1399,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: