mirror of
https://github.com/python/cpython.git
synced 2025-08-16 23:01:34 +00:00
Restore default testRunner argument in unittest.main to None. Issue 6177.
This commit is contained in:
parent
05f26d88fd
commit
48bc8203cc
2 changed files with 15 additions and 2 deletions
|
@ -798,8 +798,10 @@ Examples:
|
|||
in MyTestCase
|
||||
"""
|
||||
def __init__(self, module='__main__', defaultTest=None,
|
||||
argv=None, testRunner=TextTestRunner,
|
||||
argv=None, testRunner=None,
|
||||
testLoader=defaultTestLoader):
|
||||
if testRunner is None:
|
||||
testRunner = TextTestRunner
|
||||
if type(module) == type(''):
|
||||
self.module = __import__(module)
|
||||
for part in module.split('.')[1:]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue