mirror of https://github.com/python/cpython
#4640: add a test to optparse that proves issue is invalid.
This commit is contained in:
parent
cf3e20c8e8
commit
32e0681156
|
@ -764,6 +764,11 @@ class TestStandard(BaseTest):
|
||||||
{'a': "-b3", 'boo': None, 'foo': None},
|
{'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):
|
class TestBool(BaseTest):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
options = [make_option("-v",
|
options = [make_option("-v",
|
||||||
|
|
Loading…
Reference in New Issue