diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-31 21:17:37 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-31 21:17:37 (GMT) |
commit | c0cbc8611b5d9633796ade4b1cd37f332fa0b12f (patch) | |
tree | 6b19e64bfedb75bb9cb58d9f4f159e333f79b269 /Lib/test/test_optparse.py | |
parent | 579f7355fe2c90b3f7001135c0ec0766dad6d244 (diff) | |
download | cpython-c0cbc8611b5d9633796ade4b1cd37f332fa0b12f.zip cpython-c0cbc8611b5d9633796ade4b1cd37f332fa0b12f.tar.gz cpython-c0cbc8611b5d9633796ade4b1cd37f332fa0b12f.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r-- | Lib/test/test_optparse.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 2f1f5d2..254d1b4 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -59,7 +59,7 @@ Args were %(args)s.""" % locals ()) kwargs, expected_exception, expected_output, - get_output=None, + get_output=None, exact_match=False): """Assert the expected exception is raised when calling a function. @@ -346,7 +346,7 @@ class TestTypeAliases(BaseTest): self.assertEquals(self.parser.get_option("-x").type, "int") self.assertEquals(self.parser.get_option("-s").type, "string") self.assertEquals(self.parser.get_option("-t").type, "string") - + # Custom type for testing processing of default values. _time_units = { 's' : 1, 'm' : 60, 'h' : 60*60, 'd' : 60*60*24 } @@ -503,7 +503,7 @@ options: default=None, help=self.file_help) self.assertHelp(self.parser, self.expected_help_none) - + def test_default_none_2(self): self.parser.add_option("-f", "--file", help=self.file_help) @@ -1375,7 +1375,7 @@ class TestHelp(BaseTest): help="store FOO in the foo list for later fooing"), ] os.environ['COLUMNS'] = str(columns) - return OptionParser(option_list=options) + return OptionParser(option_list=options) def assertHelpEquals(self, expected_output): # This trick is used to make optparse believe bar.py is being executed. @@ -1441,7 +1441,7 @@ options: """) - + class TestMatchAbbrev(BaseTest): def test_match_abbrev(self): |