[lxml-dev] FAIL: test_parser_target_entity

Cesar Ortiz cesar.ortiz at gmail.com
Thu Aug 7 00:59:55 CEST 2008


I got it From subversion ;).
I did not see the tar.gz from the site. I will have a look again....

Thank you for the quick answer.

-- Cesar

On Wed, Aug 6, 2008 at 8:31 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:

> Hi,
>
> Cesar Ortiz wrote:
> > In my system I´ve got libxml2 2.6.26 and libxslt 1.1.17, and I tried to
> > install lxml.
> >
> > [phe1246 at pandora lxml]$ make test
> > python setup.py  build_ext -i
> > Building lxml version 2.2.alpha1-56897.
> > Building with Cython 0.9.8.
>
> No need to install Cython, BTW.
>
>
> > ======================================================================
> > FAIL: test_parser_target_entity
> (lxml.tests.test_elementtree.ETreeTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.4/unittest.py", line 260, in run
> >     testMethod()
> >   File "/home/phe1246/software/lxml/src/lxml/tests/test_elementtree.py",
> > line 3417, in test_parser_target_entity
> >     events)
> >   File "/usr/lib/python2.4/unittest.py", line 333, in failUnlessEqual
> >     raise self.failureException, \
> > AssertionError: ['start-root', 'start-sub', 'end-sub', 'start-sub',
> > 'data-this is an entity', 'end-sub', 'start-sub', 'end-sub', 'end-root']
> !=
> > ['start-root', 'start-sub', 'end-sub', 'start-sub', u'data-this is an
> > entityan entity', 'end-sub', 'start-sub', 'end-sub', 'end-root']
> >
> > ----------------------------------------------------------------------
>
> That's a known bug in libxml2 <= 2.6.26. I generally recommend using
> 2.6.28 or
> later, although this will only hit you if you use the target parser
> together
> with entities (as the test shows).
>
>
> > NB: By the way, is it possible to get a .tar.gz version from any place?
>
> ... of lxml? Now I have to wonder how you actually installed it. :)
>
> You'll find it on the web site and on PyPI.
>
> Stefan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080807/4740647c/attachment.htm 


More information about the lxml-dev mailing list