]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110756: Sync regrtest with main branch (#110758) (#110781)
authorVictor Stinner <vstinner@python.org>
Thu, 12 Oct 2023 21:45:36 +0000 (23:45 +0200)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 21:45:36 +0000 (21:45 +0000)
commit26748ed4f61520c59af15547792d1e73144a4314
treed7e86888379c3ade062978fcc9070ef62fb02d45
parente16922f07010a620298d7fb8abfae5c578d5d337
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.
29 files changed:
Lib/test/__main__.py
Lib/test/autotest.py
Lib/test/libregrtest/__init__.py
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/findtests.py [new file with mode: 0644]
Lib/test/libregrtest/logger.py [new file with mode: 0644]
Lib/test/libregrtest/main.py
Lib/test/libregrtest/pgo.py
Lib/test/libregrtest/refleak.py
Lib/test/libregrtest/result.py [new file with mode: 0644]
Lib/test/libregrtest/results.py [new file with mode: 0644]
Lib/test/libregrtest/run_workers.py [new file with mode: 0644]
Lib/test/libregrtest/runtest.py [deleted file]
Lib/test/libregrtest/runtest_mp.py [deleted file]
Lib/test/libregrtest/runtests.py [new file with mode: 0644]
Lib/test/libregrtest/save_env.py
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/single.py [new file with mode: 0644]
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/worker.py [new file with mode: 0644]
Lib/test/pythoninfo.py
Lib/test/regrtest.py
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_faulthandler.py
Lib/test/test_regrtest.py
Lib/test/test_support.py