[lxml-dev] FAIL: test_parser_target_entity
Sergio Monteiro Basto
sergio at sergiomb.no-ip.org
Thu Aug 7 01:27:13 CEST 2008
Fedora 8 and Fedora 9 have
the libxml2-2.6.32 and the libxslt-1.1.24
and works nice .
IMHO you should update libxml2 and libxslt.
BTW: I am another happy user of lxml , a big thanks to lxml team !
On Thu, 2008-08-07 at 00:59 +0200, Cesar Ortiz wrote:
> 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
>
>
>
> _______________________________________________
> lxml-dev mailing list
> lxml-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/lxml-dev
--
Sérgio M.B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2192 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20080807/2dac27df/attachment.bin
More information about the lxml-dev
mailing list