subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From futat...@apache.org
Subject svn commit: r1877318 - /subversion/trunk/subversion/tests/cmdline/svntest/actions.py
Date Sun, 03 May 2020 11:02:02 GMT
Author: futatuki
Date: Sun May  3 11:02:02 2020
New Revision: 1877318

URL: http://svn.apache.org/viewvc?rev=1877318&view=rev
Log:
Fix svnrdump tests on Windows with Python 3

* subversion/tests/cmdline/svntest/actions.py (run_and_verify_svnrdump):
 Use list complehension instead of map function, which returns iterator
 on Python 3, to get EOL translated list of lines on Windows.

Reported by: jcorvel
Tested by: jcorvel

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/actions.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/actions.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/actions.py?rev=1877318&r1=1877317&r2=1877318&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/actions.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/actions.py Sun May  3 11:02:02 2020
@@ -418,7 +418,7 @@ def run_and_verify_svnrdump(dumpfile_con
   # Since main.run_svnrdump() uses binary mode, normalize the stderr
   # line endings on Windows ourselves.
   if sys.platform == 'win32':
-    err = map(lambda x : x.replace('\r\n', '\n'), err)
+    err = [x.replace('\r\n', '\n') for x in err]
 
   # Ignore "consider upgrade" warnings to allow regression tests to pass
   # when run against a 1.6 mod_dav_svn.



Mime
View raw message