diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2017-02-19 04:33:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-19 04:33:35 (GMT) |
commit | 0683d6889bd4430599d22e12e201b8e9c45be5a2 (patch) | |
tree | d13cda69479e403ec2a750666c9c32ef30a4d7be /Misc | |
parent | d372cda5cd46712c4e59262ec1ab981773b20bff (diff) | |
download | cpython-0683d6889bd4430599d22e12e201b8e9c45be5a2.zip cpython-0683d6889bd4430599d22e12e201b8e9c45be5a2.tar.gz cpython-0683d6889bd4430599d22e12e201b8e9c45be5a2.tar.bz2 |
[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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -202,6 +202,11 @@ Documentation Tests ----- +- Issue #29571: to match the behaviour of the ``re.LOCALE`` flag, + test_re.test_locale_flag now uses ``locale.getpreferredencoding(False)`` to + determine the candidate encoding for the test regex (allowing it to correctly + skip the test when the default locale encoding is a multi-byte encoding) + - Issue #28950: Disallow -j0 to be combined with -T/-l in regrtest command line arguments. |