summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/tests/basic.py4
-rwxr-xr-xpython/tests/exslt.py18
-rwxr-xr-xpython/tests/extfunc.py3
-rwxr-xr-xpython/tests/pyxsltproc.py3
4 files changed, 12 insertions, 16 deletions
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