Restore default testRunner argument in unittest.main to None. Issue 6177.

This commit is contained in:
Michael Foord 2009-06-02 18:22:38 +00:00
parent 05f26d88fd
commit 48bc8203cc
2 changed files with 15 additions and 2 deletions

View file

@ -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:]: