SVN: zope.formlib/trunk/ Adapt tests for Python 2.5 output.

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20090221121939.724B2940AA__38989.4232539975$1235218873$gmane$org@cvs.zope.org>
Log message for revision 96898:
  Adapt tests for Python 2.5 output.
  

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

-=-
Modified: zope.formlib/trunk/CHANGES.txt
===================================================================
--- zope.formlib/trunk/CHANGES.txt	2009-02-21 12:05:11 UTC (rev 96897)
+++ zope.formlib/trunk/CHANGES.txt	2009-02-21 12:19:39 UTC (rev 96898)
@@ -5,7 +5,7 @@
 3.5.2 (unreleased)
 ==================
 
-- ...
+- Adapt tests for Python 2.5 output.
 
 3.5.1 (2009-01-31)
 ==================

Modified: zope.formlib/trunk/src/zope/formlib/tests.py
===================================================================
--- zope.formlib/trunk/src/zope/formlib/tests.py	2009-02-21 12:05:11 UTC (rev 96897)
+++ zope.formlib/trunk/src/zope/formlib/tests.py	2009-02-21 12:19:39 UTC (rev 96898)
@@ -526,7 +526,7 @@
 def test_suite():
     from zope.testing import doctest
     checker = zope.testing.renormalizing.RENormalizing([
-      (re.compile(r"\[WidgetInputError\('form.summary', 'summary', A error message\)\]"),
+      (re.compile(r"\[WidgetInputError\('form.summary', 'summary', ValidationError\('A error message'\)\)\]"),
                   r"[<zope.app.form.interfaces.WidgetInputError instance at ...>]"),
       (re.compile(r"\[WidgetInputError\('summary', u'Summary', None\)\]"),
                   r"[<zope.app.form.interfaces.WidgetInputError instance at ...>]"),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.