summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
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
commit62fe1d1dc547d647e6ebf02f3fad68edf4020137 (patch)
tree17621927ff7bf823dcb5cedaafdc08b45839435b /test/test_cmdline.py
parent611745a6a31e56a0fa97673fe90a4252479ef2e3 (diff)
downloadpython-coveragepy-62fe1d1dc547d647e6ebf02f3fad68edf4020137.tar.gz
Switch from getopt to optparse. Thanks, Ben Finney!
Diffstat (limited to 'test/test_cmdline.py')
-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 b205a32..8b58a66 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,