[Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/ Apply fix from zope 3.3 branch at r68216 to trunk.

Rocky Burt rocky at serverzen.com
Mon May 22 11:48:14 EDT 2006


Log message for revision 68242:
  Apply fix from zope 3.3 branch at r68216 to trunk.

Changed:
  U   Zope3/trunk/src/zope/schema/_field.py
  U   Zope3/trunk/src/zope/schema/tests/test_objectfield.py

-=-
Modified: Zope3/trunk/src/zope/schema/_field.py
===================================================================
--- Zope3/trunk/src/zope/schema/_field.py	2006-05-22 15:40:08 UTC (rev 68241)
+++ Zope3/trunk/src/zope/schema/_field.py	2006-05-22 15:48:13 UTC (rev 68242)
@@ -400,7 +400,7 @@
                 errors.append(error)
             except AttributeError, error:
                 # property for the given name is not implemented
-                errors.append(SchemaNotFullyImplemented())
+                errors.append(SchemaNotFullyImplemented(error))
     return errors
 
 

Modified: Zope3/trunk/src/zope/schema/tests/test_objectfield.py
===================================================================
--- Zope3/trunk/src/zope/schema/tests/test_objectfield.py	2006-05-22 15:40:08 UTC (rev 68241)
+++ Zope3/trunk/src/zope/schema/tests/test_objectfield.py	2006-05-22 15:48:13 UTC (rev 68242)
@@ -180,7 +180,7 @@
         self.assertRaises(ValidationError, field.validate, data)
         self.assertRaises(WrongContainedType, field.validate, data)
         errors = self.getErrors(field.validate, data)
-        self.assertEquals(errors[0], SchemaNotFullyImplemented())
+        self.assert_(isinstance(errors[0], SchemaNotFullyImplemented))
 
 def test_suite():
     suite = TestSuite()



More information about the Zope3-Checkins mailing list