classification
Title: test_warnings fails on non-Western locales
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2020-06-25 11:16 by serhiy.storchaka, last changed 2020-06-25 12:32 by serhiy.storchaka. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 21143 merged serhiy.storchaka, 2020-06-25 11:18
PR 21148 merged miss-islington, 2020-06-25 11:43
PR 21149 merged miss-islington, 2020-06-25 12:04
Messages (4)
msg372344 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-06-25 11:16
$ LC_ALL=uk_UA.koi8u ./python -m test -v -m test_nonascii test_warnings
...
======================================================================
ERROR: test_nonascii (test.test_warnings.CEnvironmentVariableTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 1201, in test_nonascii
    rc, stdout, stderr = assert_python_ok("-c",
  File "/home/serhiy/py/cpython/Lib/test/support/script_helper.py", line 156, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "/home/serhiy/py/cpython/Lib/test/support/script_helper.py", line 140, in _assert_python
    res, cmd_line = run_python_until_end(*args, **env_vars)
  File "/home/serhiy/py/cpython/Lib/test/support/script_helper.py", line 127, in run_python_until_end
    proc = subprocess.Popen(cmd_line, stdin=subprocess.PIPE,
  File "/home/serhiy/py/cpython/Lib/subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/home/serhiy/py/cpython/Lib/subprocess.py", line 1739, in _execute_child
    env_list.append(k + b'=' + os.fsencode(v))
  File "/home/serhiy/py/cpython/Lib/os.py", line 812, in fsencode
    return filename.encode(encoding, errors)
  File "/home/serhiy/py/cpython/Lib/encodings/koi8_u.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character '\xf3' in position 16: character maps to <undefined>
msg372352 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-06-25 11:43
New changeset 0f8ec1fff01173803645ad6a8aea24997bf66fc1 by Serhiy Storchaka in branch 'master':
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
https://github.com/python/cpython/commit/0f8ec1fff01173803645ad6a8aea24997bf66fc1
msg372356 - (view) Author: miss-islington (miss-islington) Date: 2020-06-25 12:05
New changeset f547d06ea7db23bb0a2cf81ff85478746efa958e by Miss Islington (bot) in branch '3.8':
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
https://github.com/python/cpython/commit/f547d06ea7db23bb0a2cf81ff85478746efa958e
msg372364 - (view) Author: miss-islington (miss-islington) Date: 2020-06-25 12:22
New changeset 086b4539806e296af9b68591670d12a22e170d43 by Miss Islington (bot) in branch '3.9':
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
https://github.com/python/cpython/commit/086b4539806e296af9b68591670d12a22e170d43
History
Date User Action Args
2020-06-25 12:32:15serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-06-25 12:22:03miss-islingtonsetmessages: + msg372364
2020-06-25 12:05:00miss-islingtonsetmessages: + msg372356
2020-06-25 12:04:41miss-islingtonsetpull_requests: + pull_request20308
2020-06-25 11:43:51miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request20307
2020-06-25 11:43:37serhiy.storchakasetmessages: + msg372352
2020-06-25 11:19:01serhiy.storchakalinkissue41069 dependencies
2020-06-25 11:18:05serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request20302
2020-06-25 11:16:47serhiy.storchakacreate