Update of /cvsroot/jython/bugtests
In directory usw-pr-cvs1:/tmp/cvs-serv26378
Added Files:
test299.py
Log Message:
[ #417665 ] open(filename, "a") fails to append
--- NEW FILE ---
"""
Test that open append position filepointer at the end
"""
import support
s1 = "abcdefghijklmnopqrstuvwxyz"
s2 = "0123456789"
f = open("test299.out", "wb")
f.write(s1)
f.close()
f = open("test299.out", "ab")
f.write(s2)
f.close()
f = open("test299.out", "rb")
res = f.read()
f.close()
if res != s1 + s2:
raise support.TestError('File did not append correctly')
|