Home | History | Annotate | Download | only in unittest
      1 """Main entry point"""
      2 
      3 import sys
      4 if sys.argv[0].endswith("__main__.py"):
      5     sys.argv[0] = "python -m unittest"
      6 
      7 __unittest = True
      8 
      9 from .main import main, TestProgram, USAGE_AS_MAIN
     10 TestProgram.USAGE = USAGE_AS_MAIN
     11 
     12 main(module=None)
     13