diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-22 02:49:08 +0000 |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-22 02:49:08 +0000 |
commit | eef159bd176ffeaae7cdc8450e3d6168fbfe4a59 (patch) | |
tree | bd2aee7ff540edd450cda35795a711907cfbb7ad /Lib/unittest/main.py | |
parent | 0ce167277a1999ceab79c84a871ed069c97f4ca7 (diff) | |
download | cpython-git-eef159bd176ffeaae7cdc8450e3d6168fbfe4a59.tar.gz |
Correct usage message displayed for python -m unittest -h
Diffstat (limited to 'Lib/unittest/main.py')
-rw-r--r-- | Lib/unittest/main.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/unittest/main.py b/Lib/unittest/main.py index 35466ccfab..d0da7c070a 100644 --- a/Lib/unittest/main.py +++ b/Lib/unittest/main.py @@ -58,17 +58,11 @@ Examples: in MyTestCase """ -if __name__ == '__main__': - USAGE = USAGE_AS_MAIN -else: - USAGE = USAGE_FROM_MODULE - - class TestProgram(object): """A command-line program that runs a set of tests; this is primarily for making test modules conveniently executable. """ - USAGE = USAGE + USAGE = USAGE_FROM_MODULE def __init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=loader.defaultTestLoader, exit=True, |