subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1449178 - /subversion/trunk/subversion/tests/cmdline/svntest/verify.py
Date Fri, 22 Feb 2013 19:33:06 GMT
Author: julianfoad
Date: Fri Feb 22 19:33:06 2013
New Revision: 1449178

URL: http://svn.apache.org/r1449178
Log:
* subversion/tests/cmdline/svntest/verify.py
  (display_lines_diff): Handle a single string input properly. A follow-up to
    some recent change where I broke this case, I imagine.

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

Modified: subversion/trunk/subversion/tests/cmdline/svntest/verify.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/verify.py?rev=1449178&r1=1449177&r2=1449178&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/verify.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/verify.py Fri Feb 22 19:33:06 2013
@@ -358,6 +358,10 @@ def display_lines_diff(expected, actual,
      and ACTUAL (labeled with ACTUAL_LABEL).
      Each of EXPECTED and ACTUAL is a string or a list of strings.
   """
+  if not isinstance(expected, list):
+    expected = [expected]
+  if not isinstance(actual, list):
+    actual = [actual]
   logger.warn('DIFF ' + expected_label + ':')
   for x in unified_diff(expected, actual,
                         fromfile='EXPECTED ' + expected_label,



Mime
View raw message