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/05/31 14:43:04 UTC
svn commit: r1129652 -
/subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py
Author: stsp
Date: Tue May 31 12:43:04 2011
New Revision: 1129652
URL: http://svn.apache.org/viewvc?rev=1129652&view=rev
Log:
* subversion/tests/cmdline/svnadmin_tests.py
(verify_non_utf8_paths): Attempt to fix this test on Windows by opening
files in binary mode.
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=1129652&r1=1129651&r2=1129652&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py Tue May 31 12:43:04 2011
@@ -1335,8 +1335,8 @@ def verify_non_utf8_paths(sbox):
# 1.6 and greater should prevent such filenames from entering the repository.
path1 = os.path.join(sbox.repo_dir, "db", "revs", "0", "1")
path_new = os.path.join(sbox.repo_dir, "db", "revs", "0", "1.new")
- fp1 = open(path1)
- fp_new = open(path_new, 'w')
+ fp1 = open(path1, 'rb')
+ fp_new = open(path_new, 'wb')
for line in fp1.readlines():
if line == "A\n":
# replace 'A' with a latin1 character -- the new path is not valid UTF-8