From: Brian Warner Date: Wed, 12 Dec 2007 02:16:33 +0000 (-0700) Subject: test_system: write test data in 'b' verbatim mode, since on windows the default text... X-Git-Url: https://git.rkrishnan.org/frontends/FTP-and-SFTP.rst?a=commitdiff_plain;h=b085097adcb38bc75eab81aac5dc057f44779791;p=tahoe-lafs%2Ftahoe-lafs.git test_system: write test data in 'b' verbatim mode, since on windows the default text-mode is different. Addresses one of the failures in #223 --- diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index e72d8392..048ab353 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -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"]