diff options
| author | Raymond Hettinger <python@rcn.com> | 2003-07-16 04:29:42 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2003-07-16 04:29:42 +0000 |
| commit | f3590623e9fe5c918709634cfca28d30fb444b7c (patch) | |
| tree | 572d3f5f9718ffcd0c12b131bb2c733c64d5c6bd /Lib/test | |
| parent | 6c85bcb2aa884836349e828fd8f1f5e0f975319c (diff) | |
| download | cpython-git-f3590623e9fe5c918709634cfca28d30fb444b7c.tar.gz | |
Extend last change to cover TestSuites as well as TestCases.
Diffstat (limited to 'Lib/test')
| -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 0eb74c2293..44d4b244b3 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)) |
