diff options
author | Raymond Hettinger <python@rcn.com> | 2003-07-16 04:29:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-07-16 04:29:42 (GMT) |
commit | f3590623e9fe5c918709634cfca28d30fb444b7c (patch) | |
tree | 572d3f5f9718ffcd0c12b131bb2c733c64d5c6bd /Lib/test/test_support.py | |
parent | 6c85bcb2aa884836349e828fd8f1f5e0f975319c (diff) | |
download | cpython-f3590623e9fe5c918709634cfca28d30fb444b7c.zip cpython-f3590623e9fe5c918709634cfca28d30fb444b7c.tar.gz cpython-f3590623e9fe5c918709634cfca28d30fb444b7c.tar.bz2 |
Extend last change to cover TestSuites as well as TestCases.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 0eb74c2..44d4b24 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)) |