Commit fa49d87f authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent a3db2e37
Sat Mar 9 11:16:11 CET 2002 Daniel Veillard <daniel@veillard.com>
* 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
Fri Mar 8 16:45:55 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed a bug newly introduced and pointed by Uwe Fechner
......
......@@ -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)
......
......@@ -554,5 +554,5 @@ AC_SUBST(RDL_LIBS)
rm -f rm COPYING.LIB COPYING
ln -s Copyright COPYING
AC_OUTPUT(libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh)
AC_OUTPUT(libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py)
......@@ -105,7 +105,7 @@ if missing("MANIFEST"):
manifest.close()
setup (name = "libxml2-python",
version = "2.4.16",
version = "@LIBXML_VERSION@",
description = descr,
author = "Daniel Veillard",
author_email = "veillard@redhat.com",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment