]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix small bug in unit tests which caused spurious failures on Windows
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 16 Aug 2007 21:14:41 +0000 (14:14 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 16 Aug 2007 21:14:41 +0000 (14:14 -0700)
src/allmydata/test/test_web.py

index 5eedb7967a62a263cefcdcd3a3ea4cf3e3bbd376..b1edc1e1cdbe494a0e0df2a0cde62f43b19c36bc 100644 (file)
@@ -817,7 +817,7 @@ class Web(WebMixin, unittest.TestCase):
 
     def touch(self, localdir, filename):
         path = os.path.join(localdir, filename)
-        f = open(path, "w")
+        f = open(path, "wb")
         f.write("contents of %s\n" % filename)
         f.close()