]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-119050: Add XML support to libregrtest refleak checker (#119148) (#119272)
authorVictor Stinner <vstinner@python.org>
Mon, 20 May 2024 22:56:34 +0000 (18:56 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 22:56:34 +0000 (22:56 +0000)
commitec5743b5f2e6bc63e99b8b3a0fe964158945cbd7
tree24fa97419be2176da2f0154b0c6a72db0edef10d
parentcdccafb2d4950b43a057b862f59491c283bdc7aa
[3.12] gh-119050: Add XML support to libregrtest refleak checker (#119148) (#119272)

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.

(cherry picked from commit 9257731f5d3e9d4f99e314b23a14506563e167d7)
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]