subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1743264 - /subversion/trunk/subversion/tests/cmdline/copy_tests.py
Date Tue, 10 May 2016 21:42:02 GMT
Author: stefan2
Date: Tue May 10 21:42:02 2016
New Revision: 1743264

URL: http://svn.apache.org/viewvc?rev=1743264&view=rev
Log:
Make copy tests pass with Python 3.

* subversion/tests/cmdline/copy_tests.py
  (repos_to_wc_copy_eol_keywords): Contents is from a binary file.

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

Modified: subversion/trunk/subversion/tests/cmdline/copy_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/copy_tests.py?rev=1743264&r1=1743263&r2=1743264&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/copy_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/copy_tests.py Tue May 10 21:42:02 2016
@@ -1297,10 +1297,10 @@ def repos_to_wc_copy_eol_keywords(sbox):
   line_contents = f.readlines()
   f.close()
 
-  if re.match('[^\\r]\\n', raw_contents):
+  if re.match(b'[^\\r]\\n', raw_contents):
     raise svntest.Failure
 
-  if not re.match('.*\$LastChangedRevision:\s*\d+\s*\$', line_contents[3]):
+  if not re.match(b'.*\$LastChangedRevision:\s*\d+\s*\$', line_contents[3]):
     raise svntest.Failure
 
 #-------------------------------------------------------------



Mime
View raw message