5 # Memory debug specific
8 ctxt
= libxml2
.createPushParser(None, "<foo", 4, "test.xml")
9 ctxt
.parseChunk("/>", 2, 1)
12 if doc
.name
!= "test.xml":
13 print("document name error")
16 if root
.name
!= "foo":
17 print("root element name error")
22 ctxt
= libxml2
.createPushParser(None, "<foo", 4, "test.xml")
23 ctxt
.parseChunk("/>", 2, 1)
29 # Memory debug specific
30 libxml2
.cleanupParser()
31 if libxml2
.debugMemory(1) == 0:
34 print("Memory leak %d bytes" % (libxml2
.debugMemory(1)))