[lxml-dev] annotate, pyannotate, xsiannotate
Stefan Behnel
stefan_ml at behnel.de
Wed Sep 19 15:03:25 CEST 2007
jholg at gmx.de wrote:
> attached patch
> - enhances the annotation tests to check the TREE-attribute survival for leaf-TREE-elements in annotate/pyannotate/xsiannotate
Ok.
> - fixes a bug in DataElement that did not set py:pytype correctly when invoked with unicode string args and adds some tests for this.
You should just commit this kind of fixes instead of sending them to the list.
> I renamed _get_pytypename() to _pytypename() (internal) and __get_pytypename() to pytypename() (public), so DataElement() now uses _pytypename() rather than _typename().
Any reason there *is* a pytypename() function? It doesn't seem to be used.
> Btw I'm getting core dumps in the schematron tests:
>
> 685/802 ( 85.4%): test_schematron_invalid_schema_empty (...hematron.ETreeSchematronTestCase)Segmentation Fault (core dumped)
>
> #0 0xff0b3218 in strlen () from /usr/lib/libc.so.1
> #1 0xff106530 in _doprnt () from /usr/lib/libc.so.1
> #2 0xff108730 in vsnprintf () from /usr/lib/libc.so.1
> #3 0xfe2b7874 in __xmlRaiseError () from /apps/prod/lib/libxml2.so.2
> #4 0xfe45fd5c in xmlSchematronPErr () from /apps/prod/lib/libxml2.so.2
> #5 0xfe462d24 in xmlSchematronParse () from /apps/prod/lib/libxml2.so.2
> #6 0xfe60f080 in __pyx_f_5etree_10Schematron___init__ (__pyx_v_self=0x829a10,
> __pyx_args=0x8872c8, __pyx_kwds=0x109b04) at src/lxml/etree.c:4131
> #7 0x58504 in type_call (type=0xfe665988, args=0x829d30, kwds=0x89d4b0)
> at Objects/typeobject.c:443
> #8 0x260c4 in PyObject_Call (func=0x829a10, arg=0x829d30, kw=0x89d4b0)
> at Objects/abstract.c:1802
I don't get those, with none of the supported libxml2 versions. What's the one
you use? Have you seen those with the trunk before or is it just now?
Stefan
More information about the lxml-dev
mailing list