[Zope-dev] New release for zope.schema
Marius Gedminas
marius at gedmin.as
Thu Mar 22 21:03:07 UTC 2012
On Thu, Mar 22, 2012 at 07:04:29PM +0100, Jan-Carel Brand wrote:
> On Thu, 2012-03-22 at 19:39 +0200, Marius Gedminas wrote:
> > $ virtualenv -p python3.2 py32
> > $ py32/bin/python setup.py develop
> > ... this takes a long time... I miss my buildout egg cache ...
> > $ py32/bin/pip install zope.testrunner
> > $ py32/bin/pip install zope.testing # have to install test extras by hand?
> > $ py32/bin/zope-testrunner --test-path=src
> > ...
> > Ran 255 tests with 1 failures and 0 errors in 0.206 seconds.
>
> lol. Yeah, it took me a while to figure it out as well.
>
> I instead ran: python setup.py test
>
> That also works.
D'oh! :-)
> Yeah, as Brian mentioned:
> https://bugs.launchpad.net/zope.interface/+bug/911851
Given that zope.schema already requires Python 2.6 or newer, I've committed
this fix:
--- src/zope/schema/tests/test_choice.py (revision 124693)
+++ src/zope/schema/tests/test_choice.py (working copy)
@@ -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 @@ class Vocabulary_ChoiceFieldTests(unitte
self.assertRaises(ValueError, choice.validate, "value")
+ at implementer(IContextSourceBinder)
class SampleContextSourceBinder(object):
- implements(IContextSourceBinder)
def __call__(self, context):
return SampleVocabulary()
Marius Gedminas
--
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20120322/524b4793/attachment.sig>
More information about the Zope-Dev
mailing list