Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554)

This reverts commit ace5c0fdd9.
This commit is contained in:
Benjamin Peterson 2017-03-07 22:48:09 -08:00 committed by GitHub
parent ad4a0cc519
commit 21a74312f2
2 changed files with 1 additions and 10 deletions

View file

@ -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: