mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
gh-119070: Avoid test crash due to Unicode in stderr output (GH-119747)
This commit is contained in:
parent
bc01c5d225
commit
e902503980
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class RunPyMixin:
|
|||
p.stdin.close()
|
||||
p.wait(10)
|
||||
out = p.stdout.read().decode("utf-8", "replace")
|
||||
err = p.stderr.read().decode("ascii", "replace")
|
||||
err = p.stderr.read().decode("ascii", "replace").replace("\uFFFD", "?")
|
||||
if p.returncode != expect_returncode and support.verbose and not allow_fail:
|
||||
print("++ COMMAND ++")
|
||||
print([self.py_exe, *args])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue