diff options
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. |
