Commit 32e06811 authored by R. David Murray's avatar R. David Murray

#4640: add a test to optparse that proves issue is invalid.

parent cf3e20c8
......@@ -764,6 +764,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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment