Skip to content

Commit add7cbf

Browse files
author
Michael Foord
committed
Fix so that test.test_unittest can be executed by unittest and not just regrtest
1 parent a9c7a8f commit add7cbf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_unittest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55

66
def test_main():
7+
# used by regrtest
78
support.run_unittest(unittest.test.suite())
89
support.reap_children()
910

11+
def load_tests(*_):
12+
# used by unittest
13+
return unittest.test.suite()
14+
1015
if __name__ == "__main__":
1116
test_main()

0 commit comments

Comments
 (0)