]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121204)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2024 08:55:38 +0000 (10:55 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 08:55:38 +0000 (08:55 +0000)
commit1f2f9c4ff5c8f1b362766fc4fd38a665674504d1
tree41cfd32b443f4293e991b26435465454a2c85007
parent82777cd024331598dd87b45a00f9dd71437b93fa
[3.13] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121204)

gh-121188: Sanitize invalid XML characters in regrtest (GH-121195)

When creating the JUnit XML file, regrtest now escapes characters
which are invalid in XML, such as the chr(27) control character used
in ANSI escape sequences.
(cherry picked from commit af8c3d7a26d605099f5b3406a8d33ecddb77e8fb)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/testresult.py
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2024-07-01-09-04-32.gh-issue-121188.XbuTVa.rst [new file with mode: 0644]