From 17e770311041d815dc858efdaae759b013039772 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 10 Sep 2009 22:39:58 -0400 Subject: Switch from getopt to optparse. Thanks, Ben Finney! --- test/test_cmdline.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/test_cmdline.py') 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, -- cgit v1.2.1