]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109162: libregrtest: rename runtest_mp.py to run_workers.py (#109248)
authorVictor Stinner <vstinner@python.org>
Mon, 11 Sep 2023 03:27:37 +0000 (05:27 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 03:27:37 +0000 (03:27 +0000)
commit0c139b5f2fb9c8a9e6df58e5da9d4a992d17926d
tree5c2b98a0be28e67c2202b2a3daa11fbb7c776aee
parent0b6b05391bcc5893d2b71032cb704995696ecd0b
gh-109162: libregrtest: rename runtest_mp.py to run_workers.py (#109248)

* Rename runtest_mp.py to run_workers.py
* Move exit_timeout() and temp_cwd() context managers from
  Regrtest.main() to Regrtest.run_tests(). Actions like --list-tests
  or --list-cases don't need these protections.
* Regrtest: remove selected and tests attributes. Pass 'selected' to
  list_tests(), list_cases() and run_tests(). display_result() now
  expects a TestTuple, instead of TestList.
* Rename setup_tests() to setup_process() and rename setup_support()
  to setup_tests().
* Move _adjust_resource_limits() to utils and rename it to
  adjust_rlimit_nofile().
* Move replace_stdout() to utils.
* Fix RunTests.verbose type: it's an int.
Lib/test/libregrtest/main.py
Lib/test/libregrtest/result.py
Lib/test/libregrtest/results.py
Lib/test/libregrtest/run_workers.py [moved from Lib/test/libregrtest/runtest_mp.py with 98% similarity]
Lib/test/libregrtest/runtests.py
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/single.py
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/worker.py