]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_system: write test data in 'b' verbatim mode, since on windows the default text...
authorBrian Warner <warner@allmydata.com>
Wed, 12 Dec 2007 02:16:33 +0000 (19:16 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 12 Dec 2007 02:16:33 +0000 (19:16 -0700)
src/allmydata/test/test_system.py

index e72d8392ef9fdeed456c4b575dfed44856089e4d..048ab35398c4c581db039b7606486e668310069d 100644 (file)
@@ -1077,7 +1077,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
             tdir = self.getdir("cli_put")
             fileutil.make_dirs(tdir)
             fn = os.path.join(tdir, "upload_me")
-            f = open(fn, "w")
+            f = open(fn, "wb")
             f.write(TESTDATA)
             f.close()
             argv = ["put"] + nodeargs + [fn, "test_put/upload.txt"]