[Python-checkins] r82233 - python/trunk/Lib/test/test_optparse.py
r.david.murray
python-checkins at python.org
Sat Jun 26 02:06:45 CEST 2010
Author: r.david.murray
Date: Sat Jun 26 02:06:44 2010
New Revision: 82233
Log:
#4640: add a test to optparse that proves issue is invalid.
Modified:
python/trunk/Lib/test/test_optparse.py
Modified: python/trunk/Lib/test/test_optparse.py
==============================================================================
--- python/trunk/Lib/test/test_optparse.py (original)
+++ python/trunk/Lib/test/test_optparse.py Sat Jun 26 02:06:44 2010
@@ -764,6 +764,11 @@
{'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",
More information about the Python-checkins
mailing list