]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726)
authorPetr Viktorin <encukou@gmail.com>
Tue, 27 Feb 2024 08:51:17 +0000 (09:51 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Feb 2024 08:51:17 +0000 (09:51 +0100)
commitaf5f9d682c20c951b90e3c020eeccac386c9bbb0
tree212d63bd3fa2edc6a6dc34422e0c096d0cb7bd0a
parent6087315926fb185847a52559af063cc7d337d978
gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726)

Instead of showing a dot for each iteration, show:
- '.' for zero (on negative) leaks
- number of leaks for 1-9
- 'X' if there are more leaks

This allows more rapid iteration: when bisecting, I don't need
to wait for the final report to see if the test still leaks.

Also, show the full result if there are any non-zero entries.
This shows negative entries, for the unfortunate cases where
a reference is created and cleaned up in different runs.

Test *failure* is still determined by the existing heuristic.
Lib/test/libregrtest/refleak.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2024-02-20-15-47-41.gh-issue-115720.w8i8UG.rst [new file with mode: 0644]