3 # this tests the entities substitutions with the XmlTextReader interface
9 # Memory debug specific
10 libxml2
.debugMemory(1)
13 # Parse a document testing the Close() API
16 <label>some text</label>
20 reader
= libxml2
.readerForDoc(docstr
, "test1", None, 0)
26 print "Error closing the document test1"
31 # Memory debug specific
32 libxml2
.cleanupParser()
33 if libxml2
.debugMemory(1) == 0:
36 print "Memory leak %d bytes" % (libxml2
.debugMemory(1))