summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
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 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,