]> granicus.if.org Git - python/commitdiff
Oops, get_tests may be called with 3 arguments.
authorThomas Heller <theller@ctypes.org>
Wed, 21 May 2008 19:47:44 +0000 (19:47 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 21 May 2008 19:47:44 +0000 (19:47 +0000)
Lib/ctypes/test/__init__.py
Lib/ctypes/test/runtests.py

index 24738eae511e15e068ca802c2f9391b1de0a890d..e2878f23defd61b7c75cbc91e0cdafaa50506d49 100644 (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 = []
index 14d7caa7c19e37b9ad4bd29f0ad89aa6adba03f8..ec31fc831dd6b991518421f46ca2f4829c226b46 100644 (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