revision 1.9 of test_gzip.py
force gzip module to open files using 'b'inary mode.
closes patch #536278.
f = gzip.GzipFile(filename, 'wb') ; f.write(data1 * 50) ; f.close()
-f = gzip.GzipFile(filename, 'rb') ; d = f.read() ; f.close()
+f = gzip.GzipFile(filename, 'r') ; d = f.read() ; f.close()
verify(d == data1*50)
# Append to the previous file
f.write('GZ\n')
f.close()
+f = gzip.GzipFile(filename, 'r')
+verify(f.myfileobj.mode == 'rb')
+f.close()
+
os.unlink(filename)