From: Brian Warner Date: Tue, 20 May 2008 03:24:12 +0000 (-0700) Subject: test_system: fix windows test failure, open files with binary mode X-Git-Tag: allmydata-tahoe-1.1.0~107 X-Git-Url: https://git.rkrishnan.org/class-simplejson.JSONDecoder-index.html?a=commitdiff_plain;h=506ce2dfd042e7220f142710e7e6987d7daf02fd;p=tahoe-lafs%2Ftahoe-lafs.git test_system: fix windows test failure, open files with binary mode --- 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