diff options
author | Aron Xu <aron@debian.org> | 2013-06-09 00:17:44 +0800 |
---|---|---|
committer | Aron Xu <aron@debian.org> | 2013-06-09 00:17:44 +0800 |
commit | 2c8fe012ef1ff6e0613480dd182dec099aa9636e (patch) | |
tree | f220f4e6733d3204aef57831a8dee2dd8551ed40 /python/tests/tst.py | |
parent | 3c845c4be476dc0ecb93388de9cfedb3f611e6a8 (diff) | |
download | libxml2-2c8fe012ef1ff6e0613480dd182dec099aa9636e.tar.gz |
Imported Upstream version 2.9.1upstream/2.9.1
Diffstat (limited to 'python/tests/tst.py')
-rwxr-xr-x | python/tests/tst.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/tests/tst.py b/python/tests/tst.py index 9540cda..57a7318 100755 --- a/python/tests/tst.py +++ b/python/tests/tst.py @@ -7,22 +7,22 @@ libxml2.debugMemory(1) doc = libxml2.parseFile("tst.xml") if doc.name != "tst.xml": - print "doc.name failed" + print("doc.name failed") sys.exit(1) root = doc.children if root.name != "doc": - print "root.name failed" + print("root.name failed") sys.exit(1) child = root.children if child.name != "foo": - print "child.name failed" + print("child.name failed") sys.exit(1) doc.freeDoc() # Memory debug specific libxml2.cleanupParser() if libxml2.debugMemory(1) == 0: - print "OK" + print("OK") else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) + print("Memory leak %d bytes" % (libxml2.debugMemory(1))) libxml2.dumpMemory() |