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

Skip to content

Commit 21a7431

Browse files
authored
Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554)
This reverts commit ace5c0f.
1 parent ad4a0cc commit 21a7431

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Lib/test/test_re.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ def test_ascii_and_unicode_flag(self):
13991399

14001400
def test_locale_flag(self):
14011401
import locale
1402-
enc = locale.getpreferredencoding(False)
1402+
_, enc = locale.getlocale(locale.LC_CTYPE)
14031403
# Search non-ASCII letter
14041404
for i in range(128, 256):
14051405
try:

Misc/NEWS

-9
Original file line numberDiff line numberDiff line change
@@ -911,15 +911,6 @@ Tools/Demos
911911
Tests
912912
-----
913913

914-
- bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS.
915-
Skip some tests of select.poll when running on macOS due to unresolved
916-
issues with the underlying system poll function on some macOS versions.
917-
918-
- Issue #29571: to match the behaviour of the ``re.LOCALE`` flag,
919-
test_re.test_locale_flag now uses ``locale.getpreferredencoding(False)`` to
920-
determine the candidate encoding for the test regex (allowing it to correctly
921-
skip the test when the default locale encoding is a multi-byte encoding)
922-
923914
- Issue #24932: Use proper command line parsing in _testembed
924915

925916
- Issue #28950: Disallow -j0 to be combined with -T/-l in regrtest

0 commit comments

Comments
 (0)