subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1743195 - /subversion/trunk/subversion/tests/cmdline/svntest/main.py
Date Tue, 10 May 2016 14:29:56 GMT
Author: stefan2
Date: Tue May 10 14:29:56 2016
New Revision: 1743195

URL: http://svn.apache.org/viewvc?rev=1743195&view=rev
Log:
Follow-up to r1743183:  Unbreak FSFS svnadmin tests.

* subversion/tests/cmdline/svntest/main.py
  (ensure_list): Converting strings and bytes to lists is a special case.
                 Before that, each "element" in them would become a separate
                 list element.

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

Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=1743195&r1=1743194&r2=1743195&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Tue May 10 14:29:56 2016
@@ -379,6 +379,8 @@ def ensure_list(item):
   "If ITEM is not already a list, convert it to a list."
   if isinstance(item, list):
     return item
+  elif isinstance(item, bytes) or isinstance(item, str):
+    return [ item ]
   else:
     return list(item)
 



Mime
View raw message