mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -1567,6 +1567,7 @@ Examples:
|
||||||
return
|
return
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
self.testNames = args
|
self.testNames = args
|
||||||
|
if os.path.splitext(os.path.basename(__file__))[0] == 'unitest':
|
||||||
self.module = None
|
self.module = None
|
||||||
else:
|
else:
|
||||||
self.testNames = (self.defaultTest,)
|
self.testNames = (self.defaultTest,)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue