[Checkins] SVN: zope.formlib/trunk/ Fixed tests to pass under Python 2.7. Extending the already existing renormalizing approach for similar cases.

Hanno Schlichting hannosch at hannosch.eu
Tue Jul 6 13:50:15 EDT 2010


Log message for revision 114253:
  Fixed tests to pass under Python 2.7. Extending the already existing renormalizing approach for similar cases.
  

Changed:
  U   zope.formlib/trunk/CHANGES.txt
  U   zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py

-=-
Modified: zope.formlib/trunk/CHANGES.txt
===================================================================
--- zope.formlib/trunk/CHANGES.txt	2010-07-06 17:35:43 UTC (rev 114252)
+++ zope.formlib/trunk/CHANGES.txt	2010-07-06 17:50:15 UTC (rev 114253)
@@ -5,6 +5,8 @@
 4.0.4 (unreleased)
 ==================
 
+- Fixed tests to pass under Python 2.7.
+
 - Fix validation of "multiple" attributes in orderedSelectionList.pt.
 
 4.0.3 (2010-05-06)

Modified: zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py
===================================================================
--- zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py	2010-07-06 17:35:43 UTC (rev 114252)
+++ zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py	2010-07-06 17:50:15 UTC (rev 114253)
@@ -528,6 +528,8 @@
                   r"[<zope.formlib.interfaces.WidgetInputError instance at ...>]"),
       (re.compile(r" ValueError\('invalid literal for float\(\): (bob'|10/0'),\)"),
                   r"\n <exceptions.ValueError instance at ...>"),
+      (re.compile(r" ValueError\('could not convert string to float: bob',\)"),
+                  r"\n <exceptions.ValueError instance at ...>"),
     ])
     return unittest.TestSuite((
         doctest.DocFileSuite(



More information about the checkins mailing list