Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-133711: Fix test_regrtest for PYTHONUTF8=1#134839

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:regrtest_utf8
May 28, 2025

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 28, 2025
edited by bedevere-appbot
Loading

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 --testdirC:\Users\vstinner\AppData\Local\Temp\tmp0t59e8datest_regrtest_noop1 test_regrtest_noop2 test_regrtest_noop3test_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.

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_noop4Notice the "\x91" byte at the end of the first line: it's thenon-ASCII U+00E6 character encoded to the OEM cp437 code page.
@vstinner
Copy link
MemberAuthor

Follow-up PR:#134840 "Log Windows OEM code page in test.pythoninfo".

@vstinnervstinner merged commit9161827 intopython:mainMay 28, 2025
48 checks passed
@vstinnervstinner deleted the regrtest_utf8 branchMay 28, 2025 15:19
@miss-islington-app
Copy link

Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 28, 2025
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_noop4Notice the "\x91" byte at the end of the first line: it's thenon-ASCII U+00E6 character encoded to the OEM cp437 code page.(cherry picked from commit9161827)Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

GH-134842 is a backport of this pull request to the3.14 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 28, 2025
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_noop4Notice the "\x91" byte at the end of the first line: it's thenon-ASCII U+00E6 character encoded to the OEM cp437 code page.(cherry picked from commit9161827)Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 28, 2025
@bedevere-app
Copy link

GH-134843 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 28, 2025
vstinner added a commit that referenced this pull requestMay 28, 2025
…4843)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_noop4Notice the "\x91" byte at the end of the first line: it's thenon-ASCII U+00E6 character encoded to the OEM cp437 code page.(cherry picked from commit9161827)Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner added a commit that referenced this pull requestMay 28, 2025
…4842)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_noop4Notice the "\x91" byte at the end of the first line: it's thenon-ASCII U+00E6 character encoded to the OEM cp437 code page.(cherry picked from commit9161827)Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
skip newstestsTests in the Lib/test dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp