else:
print "dom.appendChild didn't raise HierarchyRequestErr"
- nodemap = elem.attributes
+ nodemap = elem.attributes
try: nodemap.setNamedItem(text)
except HierarchyRequestErr: pass
else:
# Test for the odd flushing bugs noted in 2.0, and hopefully fixed in 2.1
import random
-random.seed(1)
+random.seed(1)
print 'Testing on 17K of random data'
a=""
for i in range(17*1024):
a=a+chr(random.randint(0,255))
-
+
# compress, sync-flush, and decompress
t = d.decompress( c.compress(a)+c.flush(zlib.Z_SYNC_FLUSH) )