summaryrefslogtreecommitdiff
path: root/check-xml-test-suite.py
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-09 10:20:00 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-09 10:20:00 +0000
commitfa49d87f92bdd6133f95e19b02bc214ade03099e (patch)
tree8500b36aa0947299ab0329298c4122dc9f48da67 /check-xml-test-suite.py
parenta3db2e371f909584c56ab84c37cc250d1a78d451 (diff)
downloadlibxml2-fa49d87f92bdd6133f95e19b02bc214ade03099e.tar.gz
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
Diffstat (limited to 'check-xml-test-suite.py')
-rwxr-xr-xcheck-xml-test-suite.py40
1 files changed, 32 insertions, 8 deletions
diff --git a/check-xml-test-suite.py b/check-xml-test-suite.py
index 1929b70e..9fca112a 100755
--- a/check-xml-test-suite.py
+++ b/check-xml-test-suite.py
@@ -53,7 +53,10 @@ def loadNoentDoc(filename):
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 @@ def testNotWf(filename, id):
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 @@ def testNotWfEnt(filename, id):
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 @@ def testNotWfEntDtd(filename, id):
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 @@ def testWfEntDtd(filename, id):
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 @@ def testError(filename, id):
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 @@ def testInvalid(filename, id):
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 @@ def testValid(filename, id):
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)