Re: New release for zope.schema

Jan-Carel Brand <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Opkode
Message-ID <1332501908.2700.114.camel@crunchbang>
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")
>  
> 
> +@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 

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.