mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 f707aa7f8b
			
		
	
	
		f707aa7f8b
		
	
	
	
	
		
			
			svn+ssh://pythondev@svn.python.org/python/trunk ........ r81055 | michael.foord | 2010-05-10 21:21:16 +0100 (Mon, 10 May 2010) | 1 line Improving help message for python -m unittest. Issue 8303. ........
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Main entry point"""
 | |
| 
 | |
| import sys
 | |
| if sys.argv[0].endswith("__main__.py"):
 | |
|     sys.argv[0] = "python -m unittest"
 | |
| 
 | |
| __unittest = True
 | |
| 
 | |
| from .main import main, TestProgram, USAGE_AS_MAIN
 | |
| TestProgram.USAGE = USAGE_AS_MAIN
 | |
| 
 | |
| main(module=None)
 |