diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-29 23:32:39 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-29 23:32:39 (GMT) |
| commit | 8bb19f094ba6ba12f70a6458729c911d93c85209 (patch) | |
| tree | 97a654402c7c812e1afd50520e53e858bd6e48e9 /Lib/test/libregrtest/runtest.py | |
| parent | 234cbef39fe7f154d46afcc6fe865db2e120bba2 (diff) | |
| download | cpython-8bb19f094ba6ba12f70a6458729c911d93c85209.zip cpython-8bb19f094ba6ba12f70a6458729c911d93c85209.tar.gz cpython-8bb19f094ba6ba12f70a6458729c911d93c85209.tar.bz2 | |
Issue #25220, libregrtest: Add runtest_ns() function
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
Diffstat (limited to 'Lib/test/libregrtest/runtest.py')
| -rw-r--r-- | Lib/test/libregrtest/runtest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/runtest.py b/Lib/test/libregrtest/runtest.py index f57784d..fb7f821 100644 --- a/Lib/test/libregrtest/runtest.py +++ b/Lib/test/libregrtest/runtest.py @@ -53,6 +53,13 @@ def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS): return stdtests + sorted(tests) +def runtest_ns(test, verbose, ns, **kw): + return runtest(test, verbose, ns.quiet, + huntrleaks=ns.huntrleaks, + timeout=ns.timeout, + **kw) + + def runtest(test, verbose, quiet, huntrleaks=False, use_resources=None, output_on_failure=False, failfast=False, match_tests=None, |
