Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5b2dcf

Browse files
committed
Merged revisions 82234 via svnmerge from
svn+ssh://[email protected]/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://[email protected]/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. ........ ................
1 parent b762071 commit a5b2dcf

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
@@ -756,6 +756,11 @@ def test_option_consumes_optionlike_string(self):
756756
{'a': "-b3", 'boo': None, 'foo': None},
757757
[])
758758

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

0 commit comments

Comments
 (0)