From add7cbfb0527aaa15879f5ea9aaf2c8b322f0868 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Fri, 3 Dec 2010 19:20:44 +0000 Subject: [PATCH] Fix so that test.test_unittest can be executed by unittest and not just regrtest --- Lib/test/test_unittest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index 7059c431634..bfc3ded6f12 100644 --- a/Lib/test/test_unittest.py +++ b/Lib/test/test_unittest.py @@ -4,8 +4,13 @@ from test import support def test_main(): + # used by regrtest support.run_unittest(unittest.test.suite()) support.reap_children() +def load_tests(*_): + # used by unittest + return unittest.test.suite() + if __name__ == "__main__": test_main()