8000 Add comment · python/cpython@cc4e6de · GitHub
[go: up one dir, main page]

Skip to content

Commit cc4e6de

Browse files
committed
Add comment
1 parent 2b67d78 commit cc4e6de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/libregrtest/run_workers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ def create_stdout(self, stack: contextlib.ExitStack) -> TextIO:
218218

219219
# gh-94026: Write stdout+stderr to a tempfile as workaround for
220220
# non-blocking pipes on Emscripten with NodeJS.
221+
# gh-109425: Use "backslashreplace" error handler: log corrupted
222+
# stdout+stderr, instead of failing with a UnicodeDecodeError and not
223+
# logging stdout+stderr at all.
221224
stdout_file = tempfile.TemporaryFile('w+',
222225
encoding=encoding,
223226
errors='backslashreplace')

0 commit comments

Comments
 (0)
0