diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-13 18:06:42 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-13 18:06:42 -0400 |
commit | c2c9c905706160bf34aea12f2348210aac3e0da2 (patch) | |
tree | 9f7cc31fdab50fc9e80c1c9fd379e0b12414242a /Lib/unittest/test/test_program.py | |
parent | e307451be16e5bf59b38ec5aea76f68c0831fb65 (diff) | |
parent | 77795fd1f148a037c9ab583968d85bfc009bc15c (diff) | |
download | cpython-c2c9c905706160bf34aea12f2348210aac3e0da2.tar.gz |
merge 3.2
Diffstat (limited to 'Lib/unittest/test/test_program.py')
-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 d5d0f5a71c..9794868f6d 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 |