Lines Matching full:libxml2
4 import libxml2
13 libxml2.debugMemory(1)
16 libxml2.cleanupParser()
17 if libxml2.debugMemory(1) != 0:
18 libxml2.dumpMemory()
19 self.fail("Memory leak %d bytes" % (libxml2.debugMemory(1),))
25 when the exception is raised, check the libxml2.lastError for
28 libxml2.registerErrorHandler(None,None)
32 e = libxml2.lastError()
54 self.failUnlessXmlError(libxml2.readFile,
56 libxml2.treeError,
57 domain=libxml2.XML_FROM_IO,
58 code=libxml2.XML_IO_LOAD_ERROR,
60 level=libxml2.XML_ERR_WARNING,
67 self.failUnlessXmlError(libxml2.readMemory,
69 libxml2.treeError,
70 domain=libxml2.XML_FROM_PARSER,
71 code=libxml2.XML_ERR_TAG_NOT_FINISHED,
73 level=libxml2.XML_ERR_FATAL,