Skip to content

gh-109162: libregrtest: rename runtest_mp.py to run_workers.py - #109248

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:regrtest_refactor16
Sep 11, 2023
Merged

gh-109162: libregrtest: rename runtest_mp.py to run_workers.py#109248
vstinner merged 1 commit into
python:mainfrom
vstinner:regrtest_refactor16

Conversation

@vstinner

@vstinnervstinner commented Sep 11, 2023

Copy link
Copy Markdown
Member
  • 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.

* 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.
@vstinner
vstinner enabled auto-merge (squash) September 11, 2023 03:04
@vstinner
vstinner merged commit 0c139b5 into python:mainSep 11, 2023
@vstinner
vstinner deleted the regrtest_refactor16 branch September 11, 2023 03:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@bedevere-bot