cpython/Lib/test/libregrtest
Victor Stinner 26748ed4f6
gh-110756: Sync regrtest with main branch (#110758) (#110781)
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

Copy also changes from:

* Lib/test/support/__init__.py
* Lib/test/support/os_helper.py
* Lib/test/support/testresult.py
* Lib/test/support/threading_helper.py
* Lib/test/test_support.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.11.
* Add support.set_sanitizer_env_var().
* Update test_faulthandler to use support.set_sanitizer_env_var().
* @support.without_optimizer doesn't exist in 3.11.
* Add support.Py_DEBUG.
* regrtest.refleak: 3.11 doesn't have sys.getunicodeinternedsize.
2023-10-12 21:45:36 +00:00
..
__init__.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
cmdline.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
findtests.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
logger.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
main.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
pgo.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
refleak.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
result.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
results.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
run_workers.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
runtests.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
save_env.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
setup.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
single.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
utils.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
win_utils.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 00:06:55 +00:00
worker.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00