This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Unsupported provider

classification
Title: python -m unittest -h and python -m unittest discover -h message slightly incorrect
Type: Stage: resolved
Components: Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: michael.foord Nosy List: michael.foord
Priority: normal Keywords:

Created on 2010-04-03 14:54 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg102267 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-04-03 14:54
The usage messages for unittest from the command line are slightly incorrect.

They show: "Usage: unittest [options]" when it should be "Usage: python -m unittest [options]" (or even "python -m unittest discover").
msg102268 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-04-03 15:01
In TestProgram.usageExit the command name comes from:

        self.progName = os.path.basename(argv[0])

For test discovery the usage message is auto-generated by optparse. Probably using sys.argv[0].
msg105463 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-05-10 20:22
Committed revision 81055.
History
Date User Action Args
2022-04-11 14:56:59adminsetgithub: 52550
2010-05-10 20:22:35michael.foordsetstatus: open -> closed
resolution: accepted
messages: + msg105463

stage: resolved
2010-04-03 15:01:44michael.foordsetmessages: + msg102268
2010-04-03 14:54:12michael.foordcreate