[lxml-dev] FAIL: test_parser_target_entity
Stefan Behnel
stefan_ml at behnel.de
Wed Aug 6 20:31:43 CEST 2008
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
More information about the lxml-dev
mailing list