#
# This test exercise the redirection of error messages with a
# functions defined in Python.
#
import sys
import libxml2
# Memory debug specific
global err
try:
except libxml2.parserError:
if got_exc == 0:
print "Failed to get a parser exception"
print "error"
print "received %s" %(err)
print "expected %s" %(expect)
i = 10000
while i > 0:
try:
except libxml2.parserError:
i = i - 1
# Memory debug specific
print "OK"
else: