commit | add7cbfb0527aaa15879f5ea9aaf2c8b322f0868 | [log] [tgz] |
---|---|---|
author | Michael Foord <fuzzyman@voidspace.org.uk> | Fri Dec 03 19:20:44 2010 +0000 |
committer | Michael Foord <fuzzyman@voidspace.org.uk> | Fri Dec 03 19:20:44 2010 +0000 |
tree | e331aa1e6744036e7a9f62c4909effb97bf112f1 | |
parent | a9c7a8fa5bded740bba314cb07ebd3c99eba928e [diff] |
Fix so that test.test_unittest can be executed by unittest and not just regrtest
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index 7059c43..bfc3ded 100644 --- a/Lib/test/test_unittest.py +++ b/Lib/test/test_unittest.py
@@ -4,8 +4,13 @@ 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()