summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/results.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-119050: Add type hints to libregrtest/results.py (GH-119144) (#119157)Miss Islington (bot)2024-05-181-6/+6
| | | | | | | | gh-119050: Add type hints to libregrtest/results.py (GH-119144) Sort also 'omitted' in TestResults.display_result(). (cherry picked from commit 30b4e9f9c42493136c58c56fee5553128bb32428) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch ↵Victor Stinner2024-03-261-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#117250) * gh-115122: Add --bisect option to regrtest (#115123) * test.bisect_cmd now exit with code 0 on success, and code 1 on failure. Before, it was the opposite. * test.bisect_cmd now runs the test worker process with -X faulthandler. * regrtest RunTests: Add create_python_cmd() and bisect_cmd() methods. (cherry picked from commit 1e5719a663d5b1703ad588dda4fccd763c7d3e99) * 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. (cherry picked from commit af5f9d682c20c951b90e3c020eeccac386c9bbb0) * gh-83434: Disable XML in regrtest when -R option is used (#117232) (cherry picked from commit d52bdfb19fadd7614a0e5abaf68525fc7300e841) --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-109413: libregrtest: Backport `.py`-file changes from #112558 ↵Alex Waygood2023-12-011-1/+1
| | | | (#112605)
* [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on ↵Alex Waygood2023-12-011-0/+2
| | | | | | | most files (#112586) (#112602) gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (#112586) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111165: Move test running code from test.support to libregrtest ↵Serhiy Storchaka2023-10-251-2/+1
| | | | | | | (GH-111166) (GH-111316) Remove no longer used functions run_unittest() and run_doctest() from the test.support module. (cherry picked from commit f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f)
* [3.12] gh-110756: Sync regrtest with main branch (#110758)Victor Stinner2023-10-121-0/+261
gh-110756: Sync regrtest with main branch Copy files from main to this branch: * Lib/test/libregrtest/*.py * Lib/test/__init__.py * Lib/test/__main__.py * Lib/test/autotest.py * Lib/test/pythoninfo.py * Lib/test/regrtest.py * Lib/test/test_regrtest.py Do not modify scripts running tests such as Makefile.pre.in, .github/workflows/build.yml or Tools/scripts/run_tests.py: do not use --fast-ci and --slow-ci in this change. Changes: * SPLITTESTDIRS: don't include test_inspect. * Add utils.process_cpu_count() using len(os.sched_getaffinity(0)). * test_regrtest doesn't use @support.without_optimizer which doesn't exist in Python 3.12. * Add support.set_sanitizer_env_var(). * Update test_faulthandler to use support.set_sanitizer_env_var().