summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-05-21 19:47:44 (GMT)
committerThomas Heller <theller@ctypes.org>2008-05-21 19:47:44 (GMT)
commit6c78f553aec38b0447bc9958feacf40617fc403b (patch)
tree0b0ae45c06838258a5c3dded8e36ef5e99536707 /Lib
parent7d9e72158674207e93873a3b649cd19499d55092 (diff)
downloadcpython-6c78f553aec38b0447bc9958feacf40617fc403b.zip
cpython-6c78f553aec38b0447bc9958feacf40617fc403b.tar.gz
cpython-6c78f553aec38b0447bc9958feacf40617fc403b.tar.bz2
Oops, get_tests may be called with 3 arguments.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/__init__.py2
-rw-r--r--Lib/ctypes/test/runtests.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ctypes/test/__init__.py b/Lib/ctypes/test/__init__.py
index 24738ea..e2878f2 100644
--- a/Lib/ctypes/test/__init__.py
+++ b/Lib/ctypes/test/__init__.py
@@ -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 = []
diff --git a/Lib/ctypes/test/runtests.py b/Lib/ctypes/test/runtests.py
index 14d7caa..ec31fc8 100644
--- a/Lib/ctypes/test/runtests.py
+++ b/Lib/ctypes/test/runtests.py
@@ -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