]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 21 Oct 2022 14:52:17 +0000 (07:52 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Oct 2022 14:52:17 +0000 (07:52 -0700)
commitb2aa28eec56d07b9c6777b02b7247cf21839de9f
treed0fa7d217b090e32a91b5a7c3960acc5fe311640
parent0bc2cf9915c65a6a91fadc0c1d411caba57db494
gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)

On Windows, when the Python test suite is run with the -jN option,
the ANSI code page is now used as the encoding for the stdout
temporary file, rather than using UTF-8 which can lead to decoding
errors.
(cherry picked from commit ec1f6f5f139868dc2c1116a7c7c878c38c668d53)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/runtest_mp.py
Misc/NEWS.d/next/Tests/2022-10-20-17-49-50.gh-issue-95027.viRpJB.rst [new file with mode: 0644]