]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119050: Add XML support to libregrtest refleak checker (#119148)
authorVictor Stinner <vstinner@python.org>
Mon, 20 May 2024 21:05:39 +0000 (17:05 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 21:05:39 +0000 (17:05 -0400)
commit9257731f5d3e9d4f99e314b23a14506563e167d7
treea98db26b692c3f952d4919e4aa0851a3ed863503
parentbf17986096491b9ca14c214ed4885340e7857e12
gh-119050: Add XML support to libregrtest refleak checker (#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.
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]