Skip to content

Commit 8097269

Browse files
committed
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 python#4640: add a test to optparse that proves issue is invalid. ........
1 parent 0a28bc5 commit 8097269

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_optparse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,11 @@ def test_option_consumes_optionlike_string(self):
754754
{'a': "-b3", 'boo': None, 'foo': None},
755755
[])
756756

757+
def test_combined_single_invalid_option(self):
758+
self.parser.add_option("-t", action="store_true")
759+
self.assertParseFail(["-test"],
760+
"no such option: -e")
761+
757762
class TestBool(BaseTest):
758763
def setUp(self):
759764
options = [make_option("-v",

0 commit comments

Comments
 (0)