mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Should pass explicit arguments to findtests(). Should initialize 'nottests'.
This commit is contained in:
parent
f1536db2e7
commit
747e1cade6
1 changed files with 4 additions and 2 deletions
|
@ -72,10 +72,12 @@ def main(tests=None, testdir=None):
|
|||
# Strip trailing ".py" from arguments
|
||||
if args[i][-3:] == '.py':
|
||||
args[i] = args[i][:-3]
|
||||
stdtests = STDTESTS
|
||||
nottests = NOTTESTS
|
||||
if exclude:
|
||||
nottests[:0] = args
|
||||
nottests = args
|
||||
args = []
|
||||
tests = tests or args or findtests()
|
||||
tests = tests or args or findtests(testdir, stdtests, nottests)
|
||||
test_support.verbose = verbose # Tell tests to be moderately quiet
|
||||
for test in tests:
|
||||
if not quiet:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue