Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

ncoghlan
Copy link
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 serhiy-storchaka added the tests Tests in the Lib/test dir label Feb 18, 2017
@ncoghlan ncoghlan merged commit 760f596 into python:3.5 Feb 19, 2017
@ncoghlan ncoghlan deleted the bpo-29571-3.5-backport branch March 30, 2018 07:44
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 20, 2018
Fix the macros STACKLESS_PROMOTE_WRAPPER and STACKLESS_PROMOTE_METHOD to use
"&&" instead of "&" for logical values. By chance the bug was harmless.
akruis pushed a commit to akruis/cpython that referenced this pull request Aug 16, 2018
Fix the macros STACKLESS_PROMOTE_WRAPPER and STACKLESS_PROMOTE_METHOD to use
"&&" instead of "&" for logical values. By chance the bug was harmless.

(cherry picked from commit b940f65)
akruis pushed a commit to akruis/cpython that referenced this pull request Sep 11, 2018
Fix the macros STACKLESS_PROMOTE_WRAPPER and STACKLESS_PROMOTE_METHOD to use
"&&" instead of "&" for logical values. By chance the bug was harmless.

(cherry picked from commit b940f65)
isidentical added a commit to isidentical/cpython that referenced this pull request Oct 25, 2021
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