]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_system: fix windows test failure, open files with binary mode
authorBrian Warner <warner@lothar.com>
Tue, 20 May 2008 03:24:12 +0000 (20:24 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 20 May 2008 03:24:12 +0000 (20:24 -0700)
src/allmydata/test/test_system.py

index 3ff82f9d3fd80b738e24ecb0fe2e9fe3719bc410..0d7d587344cf024dafab1198c4fa598e91218c3b 100644 (file)
@@ -1587,7 +1587,7 @@ class SystemTest(testutil.SignalMixin, testutil.PollMixin, testutil.StallMixin,
             files.append(fn)
             data = "data to be uploaded: file%d\n" % i
             datas.append(data)
-            open(fn,"w").write(data)
+            open(fn,"wb").write(data)
 
         # test all both forms of put: from a file, and from stdin
         #  tahoe put bar FOO