Oops, get_tests may be called with 3 arguments.

This commit is contained in:
Thomas Heller 2008-05-21 19:47:44 +00:00
parent 7d9e721586
commit 6c78f553ae
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def find_package_modules(package, mask):
if fnmatch.fnmatchcase(fnm, mask):
yield "%s.%s" % (package.__name__, os.path.splitext(fnm)[0])
def get_tests(package, mask, verbosity, exclude):
def get_tests(package, mask, verbosity, exclude=()):
"""Return a list of skipped test modules, and a list of test cases."""
tests = []
skipped = []

View File

@ -8,6 +8,8 @@ Command line flags:
Add resources to the lits of allowed resources. '*' allows all
resources.
-v verbose mode: print the test currently executed
-x<test1[,test2...]>
Exclude specified tests.
mask mask to select filenames containing testcases, wildcards allowed
"""
import sys