diff options
author | Mike Hommey <glandium@debian.org> | 2005-09-05 17:10:35 +0000 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2005-09-05 17:10:35 +0000 |
commit | a464d9993e2acd5b8e1089b218ba74c6fcf215c5 (patch) | |
tree | 72fe00eb59147367a1d660b90d08172357e0dffc /python/tests | |
parent | 112cb5bb5475afec1c1cbf1d6728ce4880d0fee8 (diff) | |
download | libxml2-a464d9993e2acd5b8e1089b218ba74c6fcf215c5.tar.gz |
Load /usr/tmp/tmp.CMoFff/libxml2-2.6.21 intoupstream/2.6.21
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'python/tests')
-rw-r--r-- | python/tests/Makefile.in | 2 | ||||
-rwxr-xr-x | python/tests/tstLastError.py | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/python/tests/Makefile.in b/python/tests/Makefile.in index a344e07..60338e4 100644 --- a/python/tests/Makefile.in +++ b/python/tests/Makefile.in @@ -152,6 +152,7 @@ TEST_PUSH = @TEST_PUSH@ TEST_REGEXPS = @TEST_REGEXPS@ TEST_SAX = @TEST_SAX@ TEST_SCHEMAS = @TEST_SCHEMAS@ +TEST_SCHEMATRON = @TEST_SCHEMATRON@ TEST_THREADS = @TEST_THREADS@ TEST_VALID = @TEST_VALID@ TEST_VTIME = @TEST_VTIME@ @@ -187,6 +188,7 @@ WITH_REGEXPS = @WITH_REGEXPS@ WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ WITH_SAX1 = @WITH_SAX1@ WITH_SCHEMAS = @WITH_SCHEMAS@ +WITH_SCHEMATRON = @WITH_SCHEMATRON@ WITH_THREADS = @WITH_THREADS@ WITH_TREE = @WITH_TREE@ WITH_TRIO = @WITH_TRIO@ diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py index 442609c..d26e82c 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() |