mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-04-28 10:05:10 +03:00
fixed a small problem related to order of files in dir, Daniel
This commit is contained in:
parent
e59494fa54
commit
2bc13cacb0
@ -12,22 +12,23 @@ import libxml2
|
|||||||
libxml2.debugMemory(1)
|
libxml2.debugMemory(1)
|
||||||
|
|
||||||
err=""
|
err=""
|
||||||
expect="""../../test/valid/xlink.xml:450: validity error: ID dt-arc already defined
|
expect="""../../test/valid/rss.xml:172: validity error: Element rss does not carry attribute version
|
||||||
|
</rss>
|
||||||
|
^
|
||||||
|
../../test/valid/xlink.xml:450: validity error: ID dt-arc already defined
|
||||||
<p><termdef id="dt-arc" term="Arc">
|
<p><termdef id="dt-arc" term="Arc">
|
||||||
^
|
^
|
||||||
../../test/valid/xlink.xml:529: validity error: attribute def line 199 references an unknown ID "dt-xlg"
|
../../test/valid/xlink.xml:529: validity error: attribute def line 199 references an unknown ID "dt-xlg"
|
||||||
<?Pub *0000052575?>
|
<?Pub *0000052575?>
|
||||||
^
|
^
|
||||||
../../test/valid/rss.xml:172: validity error: Element rss does not carry attribute version
|
|
||||||
</rss>
|
|
||||||
^
|
|
||||||
"""
|
"""
|
||||||
def callback(ctx, str):
|
def callback(ctx, str):
|
||||||
global err
|
global err
|
||||||
err = err + "%s" % (str)
|
err = err + "%s" % (str)
|
||||||
libxml2.registerErrorHandler(callback, "")
|
libxml2.registerErrorHandler(callback, "")
|
||||||
|
|
||||||
valid_files = files = glob.glob("../../test/valid/*.x*")
|
valid_files = glob.glob("../../test/valid/*.x*")
|
||||||
|
valid_files.sort()
|
||||||
for file in valid_files:
|
for file in valid_files:
|
||||||
if string.find(file, "t8") != -1:
|
if string.find(file, "t8") != -1:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user