diff options
| author | Raymond Hettinger <python@rcn.com> | 2003-04-27 07:54:23 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2003-04-27 07:54:23 +0000 |
| commit | 9dcbbea87867f38f7994dd96388266114ef0c162 (patch) | |
| tree | 4dfcbbd65dcca3232918b6e30dde5625f83435b2 /Lib/test/test_support.py | |
| parent | c23fb774772949b7861f91eec987b1cd414d5a3c (diff) | |
| download | cpython-git-9dcbbea87867f38f7994dd96388266114ef0c162.tar.gz | |
Factor out common boilerplate for test_support
Diffstat (limited to 'Lib/test/test_support.py')
| -rw-r--r-- | Lib/test/test_support.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index c61e194f57..56b60ccdec 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. |
