Commit 34c1d36a by rfkelly0

fix readwriteappendseek unittest for windows compatability

parent 13b34d4c
......@@ -15,7 +15,7 @@ implementations of this interface such as:
"""
__version__ = "0.2.0"
__version__ = "0.2.0a2"
__author__ = "Will McGugan (will@willmcgugan.com)"
# 'base' imports * from 'path' and 'errors', so their
......
......@@ -404,8 +404,10 @@ class FSTestCases:
f2.close()
self.assert_(checkcontents("b.txt", test_strings[0]))
f3 = self.fs.open("b.txt", "ab")
self.assertEquals(f3.tell(),len(test_strings[0]))
# On win32, tell() gives zero until you actually write to the file
#self.assertEquals(f3.tell(),len(test_strings[0]))
f3.write(test_strings[1])
self.assertEquals(f3.tell(),len(test_strings[0])+len(test_strings[1]))
f3.write(test_strings[2])
self.assertEquals(f3.tell(),len(all_strings))
f3.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment