cpython/Lib/unittest/__main__.py

13 lines
228 B
Python
Raw Normal View History

2009-07-19 17:18:21 -03:00
"""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
2009-07-19 17:18:21 -03:00
main(module=None)