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/xpathleak.py | |
parent | 3c845c4be476dc0ecb93388de9cfedb3f611e6a8 (diff) | |
download | libxml2-2c8fe012ef1ff6e0613480dd182dec099aa9636e.tar.gz |
Imported Upstream version 2.9.1upstream/2.9.1
Diffstat (limited to 'python/tests/xpathleak.py')
-rwxr-xr-x[-rw-r--r--] | python/tests/xpathleak.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/tests/xpathleak.py b/python/tests/xpathleak.py index 39f49e3..33ab61c 100644..100755 --- a/python/tests/xpathleak.py +++ b/python/tests/xpathleak.py @@ -42,24 +42,24 @@ badexprs = ( for expr in badexprs: try: ctxt.xpathEval(expr) - except libxml2.xpathError, e: + except libxml2.xpathError: pass else: - print "Unexpectedly legal expression:", expr + print("Unexpectedly legal expression:", expr) ctxt.xpathFreeContext() doc.freeDoc() if err != expect: - print "error" - print "received %s" %(err) - print "expected %s" %(expect) + print("error") + print("received %s" %(err)) + print("expected %s" %(expect)) sys.exit(1) libxml2.cleanupParser() leakedbytes = libxml2.debugMemory(True) if leakedbytes == 0: - print "OK" + print("OK") else: - print "Memory leak", leakedbytes, "bytes" + print("Memory leak", leakedbytes, "bytes") # drop file to .memdump file in cwd, but won't work if not compiled in libxml2.dumpMemory() |