mirror of
https://github.com/python/cpython.git
synced 2024-11-25 09:39:56 +01:00
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. ........
13 lines
238 B
Python
13 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)
|