fix to adapt varaiations in the bindings fixed to have the version of the
* check-xml-test-suite.py: fix to adapt varaiations in the
bindings
* configure.in python/setup.py python/setup.py.in: fixed to
have the version of the python scripts automatically updated
Daniel
diff --git a/check-xml-test-suite.py b/check-xml-test-suite.py
index 1929b70..9fca112 100755
--- a/check-xml-test-suite.py
+++ b/check-xml-test-suite.py
@@ -53,7 +53,10 @@
return None
ctxt.replaceEntities(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if ctxt.wellFormed() != 1:
doc.freeDoc()
return None
@@ -76,7 +79,10 @@
return -1
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if error_nr == 0 or ctxt.wellFormed() != 0:
print "%s: error: Well Formedness error not detected" % (id)
log.write("%s: error: Well Formedness error not detected\n" % (id))
@@ -98,7 +104,10 @@
ctxt.replaceEntities(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if error_nr == 0 or ctxt.wellFormed() != 0:
print "%s: error: Well Formedness error not detected" % (id)
log.write("%s: error: Well Formedness error not detected\n" % (id))
@@ -121,7 +130,10 @@
ctxt.loadSubset(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if error_nr == 0 or ctxt.wellFormed() != 0:
print "%s: error: Well Formedness error not detected" % (id)
log.write("%s: error: Well Formedness error not detected\n" % (id))
@@ -144,7 +156,10 @@
ctxt.loadSubset(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if ctxt.wellFormed() == 0:
print "%s: error: wrongly failed to parse the document" % (id)
log.write("%s: error: wrongly failed to parse the document\n" % (id))
@@ -172,7 +187,10 @@
ctxt.loadSubset(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
if ctxt.wellFormed() == 0:
print "%s: warning: failed to parse the document but accepted" % (id)
log.write("%s: warning: failed to parse the document but accepte\n" % (id))
@@ -199,7 +217,10 @@
ctxt.validate(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
valid = ctxt.isValid()
if doc == None:
print "%s: error: wrongly failed to parse the document" % (id)
@@ -232,7 +253,10 @@
ctxt.validate(1)
ctxt.parseDocument()
- doc = ctxt.doc()
+ try:
+ doc = ctxt.doc()
+ except:
+ doc = None
valid = ctxt.isValid()
if doc == None:
print "%s: error: wrongly failed to parse the document" % (id)