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

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]