]> granicus.if.org Git - python/commit
[3.6] bpo-29571: Use correct locale encoding in test_re (#149) (#153)
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 19 Feb 2017 04:33:35 +0000 (10:03 +0530)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2017 04:33:35 +0000 (10:03 +0530)
commit0683d6889bd4430599d22e12e201b8e9c45be5a2
treed13cda69479e403ec2a750666c9c32ef30a4d7be
parentd372cda5cd46712c4e59262ec1ab981773b20bff
[3.6] bpo-29571: Use correct locale encoding in test_re (#149) (#153)

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