]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 May 2024 22:50:20 +0000 (00:50 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 22:50:20 +0000 (22:50 +0000)
commit42a8d1175240f911727411a61d812b767203c133
tree6bace352abe1ba9509f830097a3f7fcbb84a90c3
parent071d996e13d5499b3a0590a4a874e4bbe7fb86bf
[3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270)

gh-119050: Add XML support to libregrtest refleak checker (GH-119148)

regrtest test runner: Add XML support to the refleak checker
(-R option).

* run_unittest() now stores XML elements as string, rather than
  objects, in support.junit_xml_list.
* runtest_refleak() now saves/restores XML strings before/after
  checking for reference leaks. Save XML into a temporary file.
(cherry picked from commit 9257731f5d3e9d4f99e314b23a14506563e167d7)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/refleak.py
Lib/test/libregrtest/single.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2024-05-18-10-59-27.gh-issue-119050.g4qiH7.rst [new file with mode: 0644]