summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_optparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2004-10-271-4/+4
|
* Update optparse module and test suite to Optik 1.5a2.Greg Ward2004-10-271-192/+214
|
* Whitespace normalization.Tim Peters2004-09-011-3/+3
|
* Use multi-line importAndrew M. Kuchling2004-08-311-4/+4
|
* Whitespace normalization.Tim Peters2004-07-311-5/+5
|
* Be more careful about reverting mutuations to system-wide (sys) variables.Tim Peters2004-07-311-20/+31
| | | | | | | This fixes 15 spurious test failures on Windows (probably all due to the test leaving a wrong path in sys.argv[0], which then prevented regrtest.py from finding the expected-output files for tests running after test_optparse).
* Upgrade optparse module and tests to Optik 1.5a1:Greg Ward2004-07-311-146/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | * add expansion of default values in help text: the string "%default" in an option's help string is expanded to str() of that option's default value, or "none" if no default value. * bug #955889: option default values that happen to be strings are now processed in the same way as values from the command line; this allows generation of nicer help when using custom types. Can be disabled with parser.set_process_default_values(False). * bug #960515: don't crash when generating help for callback options that specify 'type', but not 'dest' or 'metavar'. * feature #815264: change the default help format for short options that take an argument from e.g. "-oARG" to "-o ARG"; add set_short_opt_delimiter() and set_long_opt_delimiter() methods to HelpFormatter to allow (slight) customization of the formatting. * patch #736940: internationalize Optik: all built-in user- targeted literal strings are passed through gettext.gettext(). (If you want translations (.po files), they're not included with Python -- you'll find them in the Optik source distribution from http://optik.sourceforge.net/ .) * bug #878453: respect $COLUMNS environment variable for wrapping help output. * feature #988122: expand "%prog" in the 'description' passed to OptionParser, just like in the 'usage' and 'version' strings. (This is *not* done in the 'description' passed to OptionGroup.)
* Fix support for the "prog" keyword to the OptionParser constructor, as wellFred Drake2004-04-011-0/+16
| | | | | | as directly setting the .prog attribute (which should be supported based on the class docstring). Closes SF bug #850964.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-11/+4
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Test suite for optparse. This is a slightly-edited copy ofGreg Ward2003-04-211-0/+1210
test/test_optik.py (rev 1.19) from the Optik CVS.