From f3590623e9fe5c918709634cfca28d30fb444b7c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 16 Jul 2003 04:29:42 +0000 Subject: [PATCH] Extend last change to cover TestSuites as well as TestCases. --- Lib/test/test_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 0eb74c2293a6..44d4b244b365 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -251,7 +251,7 @@ def run_unittest(*classes): """Run tests from unittest.TestCase-derived classes.""" suite = unittest.TestSuite() for cls in classes: - if isinstance(cls, unittest.TestCase): + if isinstance(cls, (unittest.TestSuite, unittest.TestCase)): suite.addTest(cls) else: suite.addTest(unittest.makeSuite(cls))