summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-10 22:39:58 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-10 22:39:58 -0400
commit17e770311041d815dc858efdaae759b013039772 (patch)
tree855a084927846289507106c33cebe322078cfafc /test
parente71aa2bfd85735ae41f78f5135623977dd58b970 (diff)
downloadpython-coveragepy-git-17e770311041d815dc858efdaae759b013039772.tar.gz
Switch from getopt to optparse. Thanks, Ben Finney!
Diffstat (limited to 'test')
-rw-r--r--test/test_cmdline.py7
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,