diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-10 22:39:58 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-10 22:39:58 -0400 |
commit | 17e770311041d815dc858efdaae759b013039772 (patch) | |
tree | 855a084927846289507106c33cebe322078cfafc /test | |
parent | e71aa2bfd85735ae41f78f5135623977dd58b970 (diff) | |
download | python-coveragepy-git-17e770311041d815dc858efdaae759b013039772.tar.gz |
Switch from getopt to optparse. Thanks, Ben Finney!
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cmdline.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index b205a323..8b58a66c 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -35,10 +35,9 @@ class CmdLineParserTest(CoverageTest): self.command_line('--help', help_out="*usage*") def testUnknownOption(self): - # TODO: command_line shouldn't throw this exception, it should be in - # the help_fn. - self.assertRaisesMsg(Exception, "option -z not recognized", - self.command_line, '-z') + self.command_line('-z', ret=1, + help_out="no such option: -z" + ) def testBadActionCombinations(self): self.command_line('-e -a', ret=1, |