mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #25220, libregrtest: Set support.use_resources in setup_tests()
* Rename setup_python() to setup_tests() * Remove use_resources parameter of runtest()
This commit is contained in:
parent
00b8f9bb9e
commit
a204502dbf
4 changed files with 8 additions and 11 deletions
|
@ -14,7 +14,7 @@ except ImportError:
|
|||
sys.exit(2)
|
||||
|
||||
from test.libregrtest.runtest import runtest_ns, INTERRUPTED, CHILD_ERROR
|
||||
from test.libregrtest.setup import setup_python
|
||||
from test.libregrtest.setup import setup_tests
|
||||
|
||||
|
||||
# Minimum duration of a test to display its duration or to mention that
|
||||
|
@ -59,11 +59,10 @@ def run_tests_slave(slaveargs):
|
|||
ns_dict, testname = json.loads(slaveargs)
|
||||
ns = types.SimpleNamespace(**ns_dict)
|
||||
|
||||
setup_python(ns)
|
||||
setup_tests(ns)
|
||||
|
||||
try:
|
||||
result = runtest_ns(testname, ns.verbose, ns,
|
||||
use_resources=ns.use_resources,
|
||||
output_on_failure=ns.verbose3,
|
||||
failfast=ns.failfast,
|
||||
match_tests=ns.match_tests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue