![]() ![]() | ![]() |
version 1.1.1.1, 2012/02/21 23:38:00 | version 1.1.1.2, 2014/06/15 19:53:34 |
---|---|
Line 35 source.freeDoc() | Line 35 source.freeDoc() |
# check the resulting tree | # check the resulting tree |
str = dest.serialize() | str = dest.serialize() |
if str != """<root xmlns:foobar="http://example.org/bar" xmlns:default="http://example.org/include" xmlns:foo="http://example.org/foo"><default:fragment><foo:elem bar="tricky"/></default:fragment></root>""": | if str != """<root xmlns:foobar="http://example.org/bar" xmlns:default="http://example.org/include" xmlns:foo="http://example.org/foo"><default:fragment><foo:elem bar="tricky"/></default:fragment></root>""": |
print "reconciliateNs() failed" | print("reconciliateNs() failed") |
sys.exit(1) | sys.exit(1) |
target.freeDoc() | target.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() |