diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-03-08 07:56:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 07:56:59 (GMT) |
commit | 6a4b04cd337347d074ae0140fb13dca5bd4b11ef (patch) | |
tree | 8e9791307fba0497f2fee2660b7596a42a45a9be /Lib/test | |
parent | 78ad039bcf1a8c494cbc8e18380cc30665869c3e (diff) | |
download | cpython-6a4b04cd337347d074ae0140fb13dca5bd4b11ef.zip cpython-6a4b04cd337347d074ae0140fb13dca5bd4b11ef.tar.gz cpython-6a4b04cd337347d074ae0140fb13dca5bd4b11ef.tar.bz2 |
Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#555)
This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_re.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index a506b98..b945cf0 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1402,7 +1402,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: |