Re: zope-tests - FAILED: 8, OK: 39

Brian Sutherland <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Sun, Nov 13, 2011 at 08:22:38AM -0500, Tres Seaver wrote:
> > [8]    FAILED  winbot / z3c.form_py_265_32 
> > https://mail.zope.org/pipermail/zope-tests/2011-November/052551.html
> 
> Stephan said yesterday he thought this was a chameleon bug.  I just
> tried to reproduce this on a Linux box with a fresh checkout, using
> Python 2.5.5.  The tests don't even run for me::
> 
> > Traceback (most recent call last):
> >   File "/tmp/zft/bin/test", line 26, in <module>
> >     '--test-path', '/tmp/zft/src',
> >   File "/tmp/zft/eggs/zope.testrunner-4.0.4-py2.5.egg/zope/testrunner/__init__.py", line 30, in run
> >     failed = run_internal(defaults, args, script_parts=script_parts)
> >   File "/tmp/zft/eggs/zope.testrunner-4.0.4-py2.5.egg/zope/testrunner/__init__.py", line 41, in run_internal
> >     from zope.testrunner.runner import Runner
> >   File "/tmp/zft/eggs/zope.testrunner-4.0.4-py2.5.egg/zope/testrunner/runner.py", line 46, in <module>
> >     import zope.testrunner.tb_format
> >   File "/tmp/zft/eggs/zope.testrunner-4.0.4-py2.5.egg/zope/testrunner/tb_format.py", line 19, in <module>
> >     import zope.exceptions.exceptionformatter
> >   File "/tmp/zft/eggs/zope.exceptions-3.6.1-py2.5.egg/zope/exceptions/__init__.py", line 24, in <module>
> >     import zope.security
> >   File "/tmp/zft/eggs/zope.security-3.8.3-py2.5-linux-i686.egg/zope/security/__init__.py", line 17, in <module>
> >     from zope.security.management import checkPermission
> >   File "/tmp/zft/eggs/zope.security-3.8.3-py2.5-linux-i686.egg/zope/security/management.py", line 20, in <module>
> >     from zope.security import interfaces
> >   File "/tmp/zft/eggs/zope.security-3.8.3-py2.5-linux-i686.egg/zope/security/interfaces.py", line 19, in <module>
> >     from zope.schema import Text, TextLine
> >   File "/tmp/zft/eggs/zope.schema-4.0.0-py2.5.egg/zope/schema/__init__.py", line 16, in <module>
> >     from zope.schema._field import Field, Container, Iterable, Orderable
> >   File "/tmp/zft/eggs/zope.schema-4.0.0-py2.5.egg/zope/schema/_field.py", line 78
> >     class SourceText(Text):
> >         ^
> > SyntaxError: invalid syntax

I managed to reproduce it with Python 2.6.

It turned out to be a bug I introduced with the zope.schema 4.0.0
Python 3 support. I've fixed it in 123340 and released as 4.0.1.

-- 
Brian Sutherland
_______________________________________________
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.