mirror of https://github.com/python/cpython
Fix to restore command line behaviour for test modules using unittest.main(). Regression caused by issue 5995. Michael
This commit is contained in:
parent
4ba25c25d2
commit
7df82c9ef8
|
@ -1567,7 +1567,8 @@ Examples:
|
|||
return
|
||||
if len(args) > 0:
|
||||
self.testNames = args
|
||||
self.module = None
|
||||
if os.path.splitext(os.path.basename(__file__))[0] == 'unitest':
|
||||
self.module = None
|
||||
else:
|
||||
self.testNames = (self.defaultTest,)
|
||||
self.createTests()
|
||||
|
|
Loading…
Reference in New Issue