summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-27 07:54:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-04-27 07:54:23 (GMT)
commit9dcbbea87867f38f7994dd96388266114ef0c162 (patch)
tree4dfcbbd65dcca3232918b6e30dde5625f83435b2 /Lib/test/test_support.py
parentc23fb774772949b7861f91eec987b1cd414d5a3c (diff)
downloadcpython-9dcbbea87867f38f7994dd96388266114ef0c162.zip
cpython-9dcbbea87867f38f7994dd96388266114ef0c162.tar.gz
cpython-9dcbbea87867f38f7994dd96388266114ef0c162.tar.bz2
Factor out common boilerplate for test_support
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index c61e194..56b60cc 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -233,6 +233,12 @@ def run_unittest(testclass):
"""Run tests from a unittest.TestCase-derived class."""
run_suite(unittest.makeSuite(testclass), testclass)
+def run_classtests(*classnames):
+ suite = unittest.TestSuite()
+ for cls in classnames:
+ suite.addTest(unittest.makeSuite(cls))
+ run_suite(suite)
+
#=======================================================================
# doctest driver.