summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_support.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 005e847..0eb74c2 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -251,7 +251,10 @@ def run_unittest(*classes):
"""Run tests from unittest.TestCase-derived classes."""
suite = unittest.TestSuite()
for cls in classes:
- suite.addTest(unittest.makeSuite(cls))
+ if isinstance(cls, unittest.TestCase):
+ suite.addTest(cls)
+ else:
+ suite.addTest(unittest.makeSuite(cls))
if len(classes)==1:
testclass = classes[0]
else: