mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Standardize on test.test_support.run_unittest() (as opposed to a mix of run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
This commit is contained in:
parent
0d4c06e06e
commit
c2898c5a67
29 changed files with 87 additions and 180 deletions
|
@ -135,8 +135,8 @@ bad = [] # Bug report says "/" should be denied, but that is not in the RFC
|
|||
RobotTest(7, doc, good, bad)
|
||||
|
||||
def test_main():
|
||||
test_support.run_suite(tests)
|
||||
test_support.run_unittest(tests)
|
||||
|
||||
if __name__=='__main__':
|
||||
test_support.Verbose = 1
|
||||
test_support.run_suite(tests)
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue