mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix so that test.test_unittest can be executed by unittest and not just regrtest
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user