mirror of
https://github.com/python/cpython.git
synced 2026-01-27 01:32:20 +00:00
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.
........
................
This commit is contained in:
parent
b76207138a
commit
a5b2dcf2b2
1 changed files with 5 additions and 0 deletions
|
|
@ -756,6 +756,11 @@ def test_option_consumes_optionlike_string(self):
|
|||
{'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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue