diff --git a/ChangeLog b/ChangeLog index 5d58c26a..7cd1bb9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sun Nov 24 15:49:58 CET 2002 Daniel Veillard + + * python/tests/*.py: enable libxml2 memory debug before + loading libxslt since libxslt initialization now includes + EXSLT registration which initialize the libxml2 library and + allocate memory + Sun Nov 24 13:58:48 CET 2002 Daniel Veillard * python/libxsl.py: updated with new version from Stéphane Bidoul diff --git a/python/tests/basic.py b/python/tests/basic.py index 086ec5c0..89a57ac1 100755 --- a/python/tests/basic.py +++ b/python/tests/basic.py @@ -1,10 +1,10 @@ #!/usr/bin/python -u import sys import libxml2 -import libxslt - # Memory debug specific libxml2.debugMemory(1) +import libxslt + styledoc = libxml2.parseFile("test.xsl") diff --git a/python/tests/exslt.py b/python/tests/exslt.py index 3a69baa7..c64b2e43 100755 --- a/python/tests/exslt.py +++ b/python/tests/exslt.py @@ -1,10 +1,9 @@ #!/usr/bin/python -u import sys import libxml2 -import libxslt - # Memory debug specific -#libxml2.debugMemory(1) +libxml2.debugMemory(1) +import libxslt styledoc = libxml2.parseDoc( @@ -49,10 +48,9 @@ if stringval != expect: sys.exit(255) # Memory debug specific -#libxslt.cleanup() -#if libxml2.debugMemory(1) == 0: -# print "OK" -#else: -# print "Memory leak %d bytes" % (libxml2.debugMemory(1)) -# libxml2.dumpMemory() -print "OK" +libxslt.cleanup() +if libxml2.debugMemory(1) == 0: + print "OK" +else: + print "Memory leak %d bytes" % (libxml2.debugMemory(1)) + libxml2.dumpMemory() diff --git a/python/tests/extfunc.py b/python/tests/extfunc.py index 9a65b123..8d505e53 100755 --- a/python/tests/extfunc.py +++ b/python/tests/extfunc.py @@ -2,10 +2,9 @@ import sys import string import libxml2 -import libxslt - # Memory debug specific libxml2.debugMemory(1) +import libxslt nodeName = None diff --git a/python/tests/pyxsltproc.py b/python/tests/pyxsltproc.py index 3fe12f71..85700971 100755 --- a/python/tests/pyxsltproc.py +++ b/python/tests/pyxsltproc.py @@ -9,10 +9,9 @@ import time import posix import string import libxml2 -import libxslt - # Memory debug specific libxml2.debugMemory(1) +import libxslt debug = 0 repeat = 0