diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-06-26 00:17:12 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-06-26 00:17:12 (GMT) |
commit | 809726954c62740ae8a660e24c41fd1b078f8cd5 (patch) | |
tree | 7b24ad36cdce82395d9a69f5c4811b3f35bd869a /Lib/test/test_optparse.py | |
parent | 0a28bc52b877d489d2d20ca13529bb5655284ee5 (diff) | |
download | cpython-809726954c62740ae8a660e24c41fd1b078f8cd5.zip cpython-809726954c62740ae8a660e24c41fd1b078f8cd5.tar.gz cpython-809726954c62740ae8a660e24c41fd1b078f8cd5.tar.bz2 |
Merged revisions 82233 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82233 | r.david.murray | 2010-06-25 20:06:44 -0400 (Fri, 25 Jun 2010) | 2 lines
#4640: add a test to optparse that proves issue is invalid.
........
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r-- | Lib/test/test_optparse.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 8486c79..1b43f9a 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -754,6 +754,11 @@ class TestStandard(BaseTest): {'a': "-b3", 'boo': None, 'foo': None}, []) + def test_combined_single_invalid_option(self): + self.parser.add_option("-t", action="store_true") + self.assertParseFail(["-test"], + "no such option: -e") + class TestBool(BaseTest): def setUp(self): options = [make_option("-v", |