source: python/trunk/Lib/unittest/__main__.py

Last change on this file was 391, checked in by dmik, 11 years ago

python: Merge vendor 2.7.6 to trunk.

  • Property svn:eol-style set to native
File size: 238 bytes
Line 
1"""Main entry point"""
2
3import sys
4if sys.argv[0].endswith("__main__.py"):
5 sys.argv[0] = "python -m unittest"
6
7__unittest = True
8
9from .main import main, TestProgram, USAGE_AS_MAIN
10TestProgram.USAGE = USAGE_AS_MAIN
11
12main(module=None)
Note: See TracBrowser for help on using the repository browser.