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

Commit5511533

Browse files
[3.13]gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134843)
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>
1 parent8e60e6c commit5511533

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Lib/test/test_regrtest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,10 @@ def test_script_autotest(self):
871871
self.run_tests(args)
872872

873873
defrun_batch(self,*args):
874-
proc=self.run_command(args)
874+
proc=self.run_command(args,
875+
# gh-133711: cmd.exe uses the OEM code page
876+
# to display the non-ASCII current directory
877+
errors="backslashreplace")
875878
self.check_output(proc.stdout)
876879

877880
@unittest.skipUnless(sysconfig.is_python_build(),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp