]> granicus.if.org Git - python/commit
[3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 19 Feb 2017 04:33:50 +0000 (10:03 +0530)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2017 04:33:50 +0000 (10:03 +0530)
commit760f596b6a4b5514afe35e521621f484aef35413
tree22157aeb52da970f0dbb7fddfe84ee9730647771
parent5e04dfecec478db13031fa507d6b2e21adbce035
[3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)

``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