summaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-08-24 09:36:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-08-24 09:36:47 +0000
commit8bda20f73c908fc08b40ad7a1d1df2c35a8d362d (patch)
tree6a1ce0b5d3e47046787ce20ad97f5a3a497e6e28 /python/tests
parentbca3ad25f93b7895c4c89ea38551a2873cbbd3e1 (diff)
downloadlibxml2-8bda20f73c908fc08b40ad7a1d1df2c35a8d362d.tar.gz
removed a potentially uninitialized variable error fixed a deprecation
* xpath.c: removed a potentially uninitialized variable error * python/generator.py: fixed a deprecation warning * python/tests/tstLastError.py: silent the damn test when Okay ! Daniel
Diffstat (limited to 'python/tests')
-rwxr-xr-xpython/tests/tstLastError.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py
index 442609ca..d26e82ca 100755
--- a/python/tests/tstLastError.py
+++ b/python/tests/tstLastError.py
@@ -5,6 +5,10 @@ import libxml2
class TestCase(unittest.TestCase):
+ def runTest(self):
+ self.test1()
+ self.test2()
+
def setUp(self):
libxml2.debugMemory(1)
@@ -13,6 +17,8 @@ class TestCase(unittest.TestCase):
if libxml2.debugMemory(1) != 0:
libxml2.dumpMemory()
self.fail("Memory leak %d bytes" % (libxml2.debugMemory(1),))
+ else:
+ print "OK"
def failUnlessXmlError(self,f,args,exc,domain,code,message,level,file,line):
"""Run function f, with arguments args and expect an exception exc;
@@ -69,4 +75,8 @@ class TestCase(unittest.TestCase):
line=3)
if __name__ == "__main__":
- unittest.main()
+ test = TestCase()
+ test.setUp()
+ test.test1()
+ test.test2()
+ test.tearDown()