cpython/Lib/unittest/__main__.py
Michael Foord f707aa7f8b Merged revisions 81055 via svnmerge from
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.
........
2010-05-10 20:23:58 +00:00

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)