FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.6] bpo-29571: Use correct locale encoding in test_re (#149) by ncoghlan · Pull Request #153 · python/cpython · GitHub

Repository navigation

[3.6] bpo-29571: Use correct locale encoding in test_re (#149) - #153

Merged
ncoghlan merged 1 commit into
python:3.6from
ncoghlan:bpo-29571-3.6-backport
Feb 19, 2017
Merged

ncoghlan merged 1 commit into
python:3.6from
ncoghlan:bpo-29571-3.6-backport

Conversation

Copy link
Copy Markdown
Contributor

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.

``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.
serhiy-storchaka added the tests Tests in the Lib/test dir label Feb 18, 2017
ncoghlan merged commit 0683d68 into python:3.6 Feb 19, 2017
ncoghlan deleted the bpo-29571-3.6-backport branch March 30, 2018 07:44
isidentical added a commit to isidentical/cpython that referenced this pull request Oct 25, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL