[Checkins] SVN: zope.schema/trunk/src/zope/schema/tests/test_choice.py Fix zope.schema test failure on Python 3.

Marius Gedminas cvs-admin at zope.org
Thu Mar 22 21:00:28 UTC 2012


Log message for revision 124696:
  Fix zope.schema test failure on Python 3.
  
  More details at https://bugs.launchpad.net/zope.interface/+bug/911851
  
  

Changed:
  U   zope.schema/trunk/src/zope/schema/tests/test_choice.py

-=-
Modified: zope.schema/trunk/src/zope/schema/tests/test_choice.py
===================================================================
--- zope.schema/trunk/src/zope/schema/tests/test_choice.py	2012-03-22 20:11:33 UTC (rev 124695)
+++ zope.schema/trunk/src/zope/schema/tests/test_choice.py	2012-03-22 21:00:24 UTC (rev 124696)
@@ -16,7 +16,7 @@
 import unittest
 
 from six import u
-from zope.interface import implements
+from zope.interface import implementer
 from zope.schema import vocabulary
 from zope.schema import Choice
 from zope.schema.interfaces import ConstraintNotSatisfied
@@ -114,8 +114,8 @@
         self.assertRaises(ValueError, choice.validate, "value")
 
 
+ at implementer(IContextSourceBinder)
 class SampleContextSourceBinder(object):
-    implements(IContextSourceBinder)
     def __call__(self, context):
         return SampleVocabulary()
 



More information about the checkins mailing list