mirror of
https://github.com/python/cpython.git
synced 2025-07-22 02:35:22 +00:00

svn+ssh://pythondev@svn.python.org/python/trunk ........ r79274 | michael.foord | 2010-03-21 21:49:08 -0500 (Sun, 21 Mar 2010) | 1 line Correct usage message displayed for python -m unittest -h ........
12 lines
228 B
Python
12 lines
228 B
Python
"""Main entry point"""
|
|
|
|
import sys
|
|
if sys.argv[0].endswith("__main__.py"):
|
|
sys.argv[0] = "unittest"
|
|
|
|
__unittest = True
|
|
|
|
from .main import main, TestProgram, USAGE_AS_MAIN
|
|
TestProgram.USAGE = USAGE_AS_MAIN
|
|
|
|
main(module=None)
|