mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
Issue #25220, libregrtest: Pass directly ns to runtest()
* Remove runtest_ns(): pass directly ns to runtest(). * Create also Regrtest.rerun_failed_tests() method. * Inline again Regrtest.run_test(): it's no more justified to have a method
This commit is contained in:
parent
a204502dbf
commit
6f20a2e01f
3 changed files with 44 additions and 45 deletions
|
@ -13,7 +13,7 @@ except ImportError:
|
|||
print("Multiprocess option requires thread support")
|
||||
sys.exit(2)
|
||||
|
||||
from test.libregrtest.runtest import runtest_ns, INTERRUPTED, CHILD_ERROR
|
||||
from test.libregrtest.runtest import runtest, INTERRUPTED, CHILD_ERROR
|
||||
from test.libregrtest.setup import setup_tests
|
||||
|
||||
|
||||
|
@ -62,10 +62,7 @@ def run_tests_slave(slaveargs):
|
|||
setup_tests(ns)
|
||||
|
||||
try:
|
||||
result = runtest_ns(testname, ns.verbose, ns,
|
||||
output_on_failure=ns.verbose3,
|
||||
failfast=ns.failfast,
|
||||
match_tests=ns.match_tests)
|
||||
result = runtest(ns, testname)
|
||||
except KeyboardInterrupt:
|
||||
result = INTERRUPTED, ''
|
||||
except BaseException as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue