version 1.1.1.1, 2012/02/21 23:38:00
|
version 1.1.1.2, 2014/06/15 19:53:34
|
Line 19 def checkNamespaceDefs(node, count):
|
Line 19 def checkNamespaceDefs(node, count):
|
nsList = list(namespaceDefs(node)) |
nsList = list(namespaceDefs(node)) |
#print nsList |
#print nsList |
if len(nsList) != count : |
if len(nsList) != count : |
raise Exception, "Error: saw %d namespace declarations. Expected %d" % (len(nsList), count) | raise Exception("Error: saw %d namespace declarations. Expected %d" % (len(nsList), count)) |
|
|
# Memory debug specific |
# Memory debug specific |
libxml2.debugMemory(1) |
libxml2.debugMemory(1) |
Line 56 doc.freeDoc()
|
Line 56 doc.freeDoc()
|
# Memory debug specific |
# Memory debug specific |
libxml2.cleanupParser() |
libxml2.cleanupParser() |
if libxml2.debugMemory(1) == 0: |
if libxml2.debugMemory(1) == 0: |
print "OK" | print("OK") |
else: |
else: |
print "Memory leak %d bytes" % (libxml2.debugMemory(1)) | print("Memory leak %d bytes" % (libxml2.debugMemory(1))) |
libxml2.dumpMemory() |
libxml2.dumpMemory() |