[lxml-dev] annotate, pyannotate, xsiannotate
jholg at gmx.de
jholg at gmx.de
Wed Sep 19 13:24:09 CEST 2007
Hi,
attached patch
- enhances the annotation tests to check the TREE-attribute survival for leaf-TREE-elements in annotate/pyannotate/xsiannotate
- fixes a bug in DataElement that did not set py:pytype correctly when invoked with unicode string args and adds some tests for this.
I renamed _get_pytypename() to _pytypename() (internal) and __get_pytypename() to pytypename() (public), so DataElement() now uses _pytypename() rather than _typename().
Holger
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
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_treesurvival_dataelement_ustr.patch
Type: application/octet-stream
Size: 9707 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20070919/fc92de37/attachment-0001.obj
More information about the lxml-dev
mailing list