Re: New release for zope.schema
Marius Gedminas <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <20120322210307.GA20619@platonas> |
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()
Marius Gedminas
--
http://pov.lt/ -- Zope 3/BlueBream consulting and development
_______________________________________________
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 )
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9rk4sACgkQkVdEXeem14+x/ACeNxXXsk29sKDr23AzTfo1J8In Z2AAnidMJTsCBh/rNnDgoqNOu7J/Cgt2 =E+aX -----END PGP SIGNATURE-----