You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2010/09/20 21:13:50 UTC

svn commit: r999061 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

Author: rhuijben
Date: Mon Sep 20 19:13:49 2010
New Revision: 999061

URL: http://svn.apache.org/viewvc?rev=999061&view=rev
Log:
* subversion/tests/cmdline/patch_tests.py
  (patch_reverse_revert): Write two text files as binary files to make this
    this behave on Windows like it does on other platforms. I'm not sure
    if the failure shows an actual bug, but at least it stops hiding other
    problems on the buildbot.

Modified:
    subversion/trunk/subversion/tests/cmdline/patch_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/patch_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/patch_tests.py?rev=999061&r1=999060&r2=999061&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/patch_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/patch_tests.py Mon Sep 20 19:13:49 2010
@@ -3189,7 +3189,7 @@ def patch_reverse_revert(sbox):
   ]
 
   # Set mu contents
-  svntest.main.file_write(mu_path, ''.join(mu_contents_pre_patch))
+  svntest.main.file_write(mu_path, ''.join(mu_contents_pre_patch), 'wb')
   expected_output = svntest.wc.State(wc_dir, {
     'A/mu'       : Item(verb='Sending'),
     })
@@ -3256,7 +3256,7 @@ def patch_reverse_revert(sbox):
     "-This is the file 'beta'.\n",
   ]
 
-  svntest.main.file_write(patch_file_path, ''.join(unidiff_patch))
+  svntest.main.file_write(patch_file_path, ''.join(unidiff_patch), 'wb')
 
   gamma_contents = "It is the file 'gamma'.\n"
   iota_contents = "This is the file 'iota'.\nSome more bytes\n"