You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2018/01/30 16:37:24 UTC

svn commit: r1822662 - /subversion/trunk/subversion/tests/cmdline/svntest/verify.py

Author: julianfoad
Date: Tue Jan 30 16:37:24 2018
New Revision: 1822662

URL: http://svn.apache.org/viewvc?rev=1822662&view=rev
Log:
Test suite: when displaying the difference between unordered lists, sort the
lists so we can see the difference clearly.

* subversion/tests/cmdline/svntest/verify.py
  (UnorderedOutput.display_differences): Sort the lists.

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=1822662&r1=1822661&r2=1822662&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/verify.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/verify.py Tue Jan 30 16:37:24 2018
@@ -280,7 +280,7 @@ class UnorderedOutput(ExpectedOutput):
 
   def display_differences(self, message, label, actual):
     display_lines(message, self.expected, actual, label + ' (unordered)', label)
-    display_lines_diff(self.expected, actual, label + ' (unordered)', label)
+    display_lines_diff(sorted(self.expected), sorted(actual), label + ' (unordered)', label)
 
 
 class UnorderedRegexListOutput(ExpectedOutput):