Skip to content

Commit

Permalink
Should pass explicit arguments to findtests(). Should initialize 'not…
Browse files Browse the repository at this point in the history
…tests'.
  • Loading branch information
gvanrossum committed Aug 24, 1998
1 parent f1536db commit 747e1ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lib/test/regrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 747e1ca

Please sign in to comment.