Issue 8303: python -m unittest -h and python -m unittest discover -h message slightly incorrect (original) (raw)

Issue8303

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:59 admin set github: 52550
2010-05-10 20:22:35 michael.foord set status: open -> closedresolution: acceptedmessages: + stage: resolved
2010-04-03 15:01:44 michael.foord set messages: +
2010-04-03 14:54:12 michael.foord create