Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: de50cdfcf9e3ba415fa09a3c9203d4d95a14e5b3 authored by Benjamin Peterson on 31 May 2014, 18:22:47 UTC
fix news header
Tip revision: de50cdf
__main__.py
"""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)
back to top