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

This reverts commit ace5c0fdd9.
This commit is contained in:
Benjamin Peterson 2017-03-07 23:56:59 -08:00 committed by GitHub
parent 78ad039bcf
commit 6a4b04cd33
2 changed files with 2 additions and 1 deletions

View file

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