* 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
Daniel
+Sun Nov 24 15:49:58 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * 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 <daniel@veillard.com>
* python/libxsl.py: updated with new version from Stéphane Bidoul
#!/usr/bin/python -u
import sys
import libxml2
-import libxslt
-
# Memory debug specific
libxml2.debugMemory(1)
+import libxslt
+
styledoc = libxml2.parseFile("test.xsl")
#!/usr/bin/python -u
import sys
import libxml2
-import libxslt
-
# Memory debug specific
-#libxml2.debugMemory(1)
+libxml2.debugMemory(1)
+import libxslt
styledoc = libxml2.parseDoc(
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()
import sys
import string
import libxml2
-import libxslt
-
# Memory debug specific
libxml2.debugMemory(1)
+import libxslt
nodeName = None
import posix
import string
import libxml2
-import libxslt
-
# Memory debug specific
libxml2.debugMemory(1)
+import libxslt
debug = 0
repeat = 0