Author: rhuijben
Date: Fri Feb 20 19:37:28 2015
New Revision: 1661202
URL: http://svn.apache.org/r1661202
Log:
* subversion/tests/cmdline/svntest/sandbox.py
(simple_append): Open file as binary to avoid problems in Windows.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py?rev=1661202&r1=1661201&r2=1661202&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Fri Feb 20
19:37:28 2015
@@ -424,7 +424,7 @@ class Sandbox:
def simple_append(self, dest, contents, truncate=False):
"""Append CONTENTS to file DEST, optionally truncating it first.
DEST is a relpath relative to the WC."""
- open(self.ospath(dest), truncate and 'w' or 'a').write(contents)
+ open(self.ospath(dest), truncate and 'wb' or 'ab').write(contents)
def simple_lock(self, *targets):
"""Lock TARGETS in the WC.