I developed a more complete test to see what happens for each process. readline() by itself returns incorrect file positions, but will pass if changed to readlines()
Only changes I made were that I did not assign to the data variable, and I created variables for the tell() for easier printing. Other than that, it's essentially the same code as the original test.
Attached test_fileseek.py
Patrick