]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121188: Sanitize invalid XML characters in regrtest (#121195)
authorVictor Stinner <vstinner@python.org>
Mon, 1 Jul 2024 08:30:33 +0000 (10:30 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 08:30:33 +0000 (08:30 +0000)
commitaf8c3d7a26d605099f5b3406a8d33ecddb77e8fb
treeec814ccede37647ad55f4518d8a6ee26ee3d9abe
parentf80376b129ad947263a6b03a6c3a874e9f8706e6
gh-121188: Sanitize invalid XML characters in regrtest (#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.
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]