diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-05-28 15:48:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-28 15:48:03 (GMT) |
commit | afb5221b3d4d70380063b6694044ea84a94db19c (patch) | |
tree | 860481351d64f8de90a1978b0505f7ec549efdb3 /Python/compile.c | |
parent | 7515384974cb5a49c98f7bdd1061948e653fb0ee (diff) | |
download | cpython-afb5221b3d4d70380063b6694044ea84a94db19c.zip cpython-afb5221b3d4d70380063b6694044ea84a94db19c.tar.gz cpython-afb5221b3d4d70380063b6694044ea84a94db19c.tar.bz2 |
[3.14] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134842)
gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839)
Use "backslashreplace" error handler to decode stdout and stderr.
Example:
vstinner@WIN C:\victor\python\main\build\test_python_worker_8360\x91>
"C:\victor\python\main\PCbuild\amd64\python_d.exe" -m test
--fast-ci --slow-ci --testdir
C:\Users\vstinner\AppData\Local\Temp\tmp0t59e8da
test_regrtest_noop1 test_regrtest_noop2 test_regrtest_noop3
test_regrtest_noop4
Notice the "\x91" byte at the end of the first line: it's the
non-ASCII U+00E6 character encoded to the OEM cp437 code page.
(cherry picked from commit 91618278e7cd1ffc222efa03bb5334bd5a13dc5b)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions