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

Commitafb5221

Browse files
[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_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 parent7515384 commitafb5221

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
@@ -874,7 +874,10 @@ def test_script_autotest(self):
874874
self.run_tests(args)
875875

876876
defrun_batch(self,*args):
877-
proc=self.run_command(args)
877+
proc=self.run_command(args,
878+
# gh-133711: cmd.exe uses the OEM code page
879+
# to display the non-ASCII current directory
880+
errors="backslashreplace")
878881
self.check_output(proc.stdout)
879882

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp