[Python-checkins] r82234 - in python/branches/py3k: Lib/test/test_optparse.py

r.david.murray python-checkins at python.org
Sat Jun 26 02:17:12 CEST 2010


Author: r.david.murray
Date: Sat Jun 26 02:17:12 2010
New Revision: 82234

Log:
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.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/test_optparse.py

Modified: python/branches/py3k/Lib/test/test_optparse.py
==============================================================================
--- python/branches/py3k/Lib/test/test_optparse.py	(original)
+++ python/branches/py3k/Lib/test/test_optparse.py	Sat Jun 26 02:17:12 2010
@@ -754,6 +754,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