Diff for /embedaddon/libxml2/python/tests/reader7.py between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:38:00 version 1.1.1.2, 2014/06/15 19:53:34
Line 3 Line 3
 # this tests the entities substitutions with the XmlTextReader interface  # this tests the entities substitutions with the XmlTextReader interface
 #  #
 import sys  import sys
 import StringIO  
 import libxml2  import libxml2
   
 # Memory debug specific  # Memory debug specific
Line 44  while ret == 1: Line 43  while ret == 1:
     ret = reader.Read()      ret = reader.Read()
   
 if ret != 0:  if ret != 0:
    print "Error parsing the document test1"    print("Error parsing the document test1")
     sys.exit(1)      sys.exit(1)
   
 if result != expect:  if result != expect:
    print "Unexpected result for test1"    print("Unexpected result for test1")
    print result    print(result)
     sys.exit(1)      sys.exit(1)
   
 #  #
Line 80  while ret == 1: Line 79  while ret == 1:
     ret = reader.Read()      ret = reader.Read()
   
 if ret != 0:  if ret != 0:
    print "Error parsing the document test2"    print("Error parsing the document test2")
     sys.exit(1)      sys.exit(1)
   
 if result != expect:  if result != expect:
    print "Unexpected result for test2"    print("Unexpected result for test2")
    print result    print(result)
     sys.exit(1)      sys.exit(1)
   
 #  #
Line 96  del reader Line 95  del reader
 # 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()

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>