]> granicus.if.org Git - python/commit
bpo-29571: Use correct locale encoding in test_re (#149)
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 18 Feb 2017 09:31:22 +0000 (15:01 +0530)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2017 09:31:22 +0000 (15:01 +0530)
commitace5c0fdd9b962e6e886c29dbcea72c53f051dc4
tree42ccb556dbc142665c461cd02d76b4ad5dbfd1d6
parent1b3d88eb33085e90af729c4c2f78b5ba1b942b1e
bpo-29571: Use correct locale encoding in test_re (#149)

``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).

``re.LOCALE`` uses the latter, so update the test case to match.
Lib/test/test_re.py
Misc/NEWS