summaryrefslogtreecommitdiff
path: root/Lib/test/support/testresult.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support/testresult.py')
-rw-r--r--Lib/test/support/testresult.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/testresult.py b/Lib/test/support/testresult.py
index 6f2edda0f5..2cd1366cd8 100644
--- a/Lib/test/support/testresult.py
+++ b/Lib/test/support/testresult.py
@@ -173,7 +173,7 @@ if __name__ == '__main__':
raise RuntimeError('error message')
suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(TestTests))
+ suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestTests))
stream = io.StringIO()
runner_cls = get_test_runner_class(sum(a == '-v' for a in sys.argv))
runner = runner_cls(sys.stdout)