diff options
Diffstat (limited to 'lib/python2.7/unittest/__main__.py')
-rw-r--r-- | lib/python2.7/unittest/__main__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python2.7/unittest/__main__.py b/lib/python2.7/unittest/__main__.py new file mode 100644 index 0000000..7320050 --- /dev/null +++ b/lib/python2.7/unittest/__main__.py @@ -0,0 +1,12 @@ +"""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) |