mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-13 09:01:53 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user