You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/02/22 15:09:41 UTC

svn commit: r1292296 - /subversion/trunk/subversion/bindings/swig/python/tests/repository.py

Author: danielsh
Date: Wed Feb 22 14:09:40 2012
New Revision: 1292296

URL: http://svn.apache.org/viewvc?rev=1292296&view=rev
Log:
APR hash unordering: relax a binding test's overenforcement of editor
drive order.

* subversion/bindings/swig/python/tests/repository.py
  (SubversionRepositoryTestCase.test_dir_delta):
    Don't check in which order the editor drove the two (sibling) files.

Modified:
    subversion/trunk/subversion/bindings/swig/python/tests/repository.py

Modified: subversion/trunk/subversion/bindings/swig/python/tests/repository.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/repository.py?rev=1292296&r1=1292295&r2=1292296&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/repository.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/repository.py Wed Feb 22 14:09:40 2012
@@ -170,9 +170,11 @@ class SubversionRepositoryTestCase(unitt
     repos.dir_delta(prev_root, '', '', this_root, '', e_ptr, e_baton,
                     _authz_callback, 1, 1, 0, 0)
 
-    # Check results
-    self.assertEqual(editor.textdeltas[0].new_data, "This is a test.\n")
-    self.assertEqual(editor.textdeltas[1].new_data, "A test.\n")
+    # Check results.
+    # Ignore the order in which the editor delivers the two sibling files.
+    self.assertEqual(set(editor.textdeltas[0].new_data,
+                         editor.textdeltas[1].new_data),
+                     set("This is a test.\n", "A test.\n"))
     self.assertEqual(len(editor.textdeltas), 2)
 
   def test_retrieve_and_change_rev_prop(self):