Fix so that test.test_unittest can be executed by unittest and not just regrtest

This commit is contained in:
Michael Foord 2010-12-03 19:20:44 +00:00
parent a9c7a8fa5b
commit add7cbfb05
1 changed files with 5 additions and 0 deletions

View File

@ -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()