source:
python/trunk/Lib/unittest/__main__.py
Last change on this file was 391, checked in by , 11 years ago | |
---|---|
|
|
File size: 238 bytes |
Line | |
---|---|
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) |
Note:
See TracBrowser
for help on using the repository browser.