mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix so that test.test_unittest can be executed by unittest and not just regrtest
This commit is contained in:
parent
a9c7a8fa5b
commit
add7cbfb05
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue