projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c7a8f
)
Fix so that test.test_unittest can be executed by unittest and not just regrtest
author
Michael Foord
<fuzzyman@voidspace.org.uk>
Fri, 3 Dec 2010 19:20:44 +0000
(19:20 +0000)
committer
Michael Foord
<fuzzyman@voidspace.org.uk>
Fri, 3 Dec 2010 19:20:44 +0000
(19:20 +0000)
Lib/test/test_unittest.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_unittest.py
b/Lib/test/test_unittest.py
index 7059c431634c68c374f806034d59bb2a520c12d0..bfc3ded6f128da498ad170680264e3cef11fdc42 100644
(file)
--- a/
Lib/test/test_unittest.py
+++ b/
Lib/test/test_unittest.py
@@
-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()