From b085097adcb38bc75eab81aac5dc057f44779791 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 11 Dec 2007 19:16:33 -0700 Subject: [PATCH] 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 --- src/allmydata/test/test_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index e72d8392e..048ab3539 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"]