#
# this tests the basic APIs of the XmlTextReader interface
#
import libxml2
import StringIO
import sys
# Memory debug specific
expect="""--> (3) test1:1:xmlns: URI foo is not absolute
--> (4) test1:1:Opening and ending tag mismatch: c line 0 and a
"""
global err
pass
print "error"
print "received %s" %(err)
print "expected %s" %(expect)
reader.SetErrorHandler(None,None)
if reader.GetErrorHandler() != (None,None):
print "GetErrorHandler failed"
#
# cleanup for memory allocation counting
#
del f
del input
del reader
# Memory debug specific
print "OK"
else: