diff options
author | Michael Foord <michael@voidspace.org.uk> | 2012-03-12 20:53:04 (GMT) |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2012-03-12 20:53:04 (GMT) |
commit | 5f99ced092b01401d9e1637c493fa61d948101fe (patch) | |
tree | 5075c87cbaf1692ab2c5e46ea9687c7d85bf52f3 /Lib/unittest/test | |
parent | 518cf94ad79503fb16475ccc29592b390e7b19da (diff) | |
download | cpython-5f99ced092b01401d9e1637c493fa61d948101fe.zip cpython-5f99ced092b01401d9e1637c493fa61d948101fe.tar.gz cpython-5f99ced092b01401d9e1637c493fa61d948101fe.tar.bz2 |
Refactor unittest command line handling to always use optparse
Diffstat (limited to 'Lib/unittest/test')
-rw-r--r-- | Lib/unittest/test/test_program.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py index d5d0f5a..9794868 100644 --- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -131,23 +131,6 @@ class TestCommandLineArgs(unittest.TestCase): FakeRunner.test = None FakeRunner.raiseError = False - def testHelpAndUnknown(self): - program = self.program - def usageExit(msg=None): - program.msg = msg - program.exit = True - program.usageExit = usageExit - - for opt in '-h', '-H', '--help': - program.exit = False - program.parseArgs([None, opt]) - self.assertTrue(program.exit) - self.assertIsNone(program.msg) - - program.parseArgs([None, '-$']) - self.assertTrue(program.exit) - self.assertIsNotNone(program.msg) - def testVerbosity(self): program = self.program |