v = self.makeLocalTree("upload")
filename = "upload1"
DATA = "here is some data\n"
- f = open(filename, "w")
+ f = open(filename, "wb")
f.write(DATA)
f.close()
def testCHKDirUpload(self):
DATA = "here is some data\n"
filename = "upload1"
- f = open(filename, "w")
+ f = open(filename, "wb")
f.write(DATA)
f.close()
def testCHKDirDelete(self):
DATA = "here is some data\n"
filename = "upload1"
- f = open(filename, "w")
+ f = open(filename, "wb")
f.write(DATA)
f.close()
# files in the tmpdir are not: these are either in the process of
# being added or in the process of being removed.
tmpfile = os.path.join(wq.tmpdir, "foo")
- f = open(tmpfile, "w")
+ f = open(tmpfile, "wb")
f.write("foo")
f.close()
# files created with create_tempfile *are* retained, however