[Checkins] SVN: Zope3/branches/3.2/src/zope/schema/ Apply fix from
	zope 3.3 branch at r68216 to 3.2 branch.
    Rocky Burt 
    rocky at serverzen.com
       
    Mon May 22 11:40:09 EDT 2006
    
    
  
Log message for revision 68241:
  Apply fix from zope 3.3 branch at r68216 to 3.2 branch.
Changed:
  U   Zope3/branches/3.2/src/zope/schema/_field.py
  U   Zope3/branches/3.2/src/zope/schema/tests/test_objectfield.py
-=-
Modified: Zope3/branches/3.2/src/zope/schema/_field.py
===================================================================
--- Zope3/branches/3.2/src/zope/schema/_field.py	2006-05-22 14:39:55 UTC (rev 68240)
+++ Zope3/branches/3.2/src/zope/schema/_field.py	2006-05-22 15:40:08 UTC (rev 68241)
@@ -391,7 +391,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/branches/3.2/src/zope/schema/tests/test_objectfield.py
===================================================================
--- Zope3/branches/3.2/src/zope/schema/tests/test_objectfield.py	2006-05-22 14:39:55 UTC (rev 68240)
+++ Zope3/branches/3.2/src/zope/schema/tests/test_objectfield.py	2006-05-22 15:40:08 UTC (rev 68241)
@@ -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 Checkins
mailing list