summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/worker.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-11 03:27:37 (GMT)
committerGitHub <noreply@github.com>2023-09-11 03:27:37 (GMT)
commit0c139b5f2fb9c8a9e6df58e5da9d4a992d17926d (patch)
tree5c2b98a0be28e67c2202b2a3daa11fbb7c776aee /Lib/test/libregrtest/worker.py
parent0b6b05391bcc5893d2b71032cb704995696ecd0b (diff)
downloadcpython-0c139b5f2fb9c8a9e6df58e5da9d4a992d17926d.zip
cpython-0c139b5f2fb9c8a9e6df58e5da9d4a992d17926d.tar.gz
cpython-0c139b5f2fb9c8a9e6df58e5da9d4a992d17926d.tar.bz2
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.
Diffstat (limited to 'Lib/test/libregrtest/worker.py')
-rw-r--r--Lib/test/libregrtest/worker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/worker.py b/Lib/test/libregrtest/worker.py
index 24251c3..b9fb031 100644
--- a/Lib/test/libregrtest/worker.py
+++ b/Lib/test/libregrtest/worker.py
@@ -6,7 +6,7 @@ from typing import TextIO, NoReturn
from test import support
from test.support import os_helper
-from test.libregrtest.setup import setup_tests, setup_test_dir
+from test.libregrtest.setup import setup_process, setup_test_dir
from test.libregrtest.runtests import RunTests
from test.libregrtest.single import run_single_test
from test.libregrtest.utils import (
@@ -60,7 +60,7 @@ def worker_process(worker_json: StrJSON) -> NoReturn:
match_tests: FilterTuple | None = runtests.match_tests
setup_test_dir(runtests.test_dir)
- setup_tests(runtests)
+ setup_process()
if runtests.rerun:
if match_tests: