mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +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,7 +1567,8 @@ def parseArgs(self, argv): | |||
|                 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Foord
						Michael Foord