[Zope-dev] New release for zope.schema

Jan-Carel Brand lists at opkode.com
Fri Mar 23 11:25:08 UTC 2012


On Thu, 2012-03-22 at 23:03 +0200, Marius Gedminas wrote:
> 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()


Thanks! That fixed the last bug.

I've now released zope.schema 4.1.0.
http://pypi.python.org/pypi/zope.schema/4.1.0

-JC 



More information about the Zope-Dev mailing list