From 506ce2dfd042e7220f142710e7e6987d7daf02fd Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 19 May 2008 20:24:12 -0700 Subject: [PATCH] test_system: fix windows test failure, open files with binary mode --- 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 3ff82f9d..0d7d5873 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -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 -- 2.45.2