You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/12/22 17:50:29 UTC

svn commit: r1222341 - /subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py

Author: stsp
Date: Thu Dec 22 16:50:29 2011
New Revision: 1222341

URL: http://svn.apache.org/viewvc?rev=1222341&view=rev
Log:
* subversion/tests/cmdline/svnadmin_tests.py
  (hotcopy_incremental_packed): Attempt to fix this test on Windows by
   writing the 'format' file in binary to retain LF newlines.

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

Modified: subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py?rev=1222341&r1=1222340&r2=1222341&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py Thu Dec 22 16:50:29 2011
@@ -1621,7 +1621,7 @@ def hotcopy_incremental_packed(sbox):
   os.mkdir(backup_dir)
   cwd = os.getcwd()
   # Configure two files per shard to trigger packing
-  format_file = open(os.path.join(sbox.repo_dir, 'db', 'format'), 'w')
+  format_file = open(os.path.join(sbox.repo_dir, 'db', 'format'), 'wb')
   format_file.write("4\nlayout sharded 2\n")
   format_file.close()