summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-06-26 00:20:20 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-06-26 00:20:20 (GMT)
commita5b2dcf2b20190e3812fff8f82ca30fc77edb8fc (patch)
tree2cbcb6ae4dda80f6e610fa4976a35bd5a5fb6a77
parentb76207138ac0ac132e5675f209956e9852e7c6b1 (diff)
downloadcpython-a5b2dcf2b20190e3812fff8f82ca30fc77edb8fc.zip
cpython-a5b2dcf2b20190e3812fff8f82ca30fc77edb8fc.tar.gz
cpython-a5b2dcf2b20190e3812fff8f82ca30fc77edb8fc.tar.bz2
Merged revisions 82234 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r82234 | r.david.murray | 2010-06-25 20:17:12 -0400 (Fri, 25 Jun 2010) | 9 lines 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. ........ ................
-rw-r--r--Lib/test/test_optparse.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
index cdbbc9d..3601c54 100644
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -756,6 +756,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",