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 2015/10/05 13:47:14 UTC
svn commit: r1706812 -
/subversion/trunk/subversion/tests/cmdline/patch_tests.py
Author: rhuijben
Date: Mon Oct 5 11:47:14 2015
New Revision: 1706812
URL: http://svn.apache.org/viewvc?rev=1706812&view=rev
Log:
* subversion/tests/cmdline/patch_tests.py
(imports): Remove unused imports.
(patch_one_property): Apply the same patch on all platforms.
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=1706812&r1=1706811&r2=1706812&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/patch_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/patch_tests.py Mon Oct 5 11:47:14 2015
@@ -39,7 +39,6 @@ import filecmp
# Our testing module
import svntest
from svntest import wc
-from svntest.main import SVN_PROP_MERGEINFO, is_os_windows
# (abbreviation)
Skip = svntest.testcase.Skip_deco
@@ -3436,9 +3435,9 @@ def patch_one_property(sbox, trailing_eo
value = "v\n"
else:
value = "v"
- unidiff_patch += ['\ No newline at end of property']
+ unidiff_patch += ['\ No newline at end of property\n']
- svntest.main.file_write(patch_file_path, ''.join(unidiff_patch))
+ svntest.main.file_write(patch_file_path, ''.join(unidiff_patch), 'wb')
expected_output = [
' U %s\n' % os.path.join(wc_dir),
@@ -3462,10 +3461,6 @@ def patch_one_property(sbox, trailing_eo
1, # dry-run
'--strip', '3')
- if is_os_windows():
- # On Windows 'svn pg' uses \r\n as EOL.
- value = value.replace('\n', '\r\n')
-
svntest.actions.check_prop('k', wc_dir, [value])
def patch_strip_cwd(sbox):