subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1594814 - /subversion/trunk/subversion/bindings/swig/python/tests/client.py
Date Thu, 15 May 2014 08:18:52 GMT
Author: rhuijben
Date: Thu May 15 08:18:52 2014
New Revision: 1594814

URL: http://svn.apache.org/r1594814
Log:
* subversion/bindings/swig/python/tests/client.py
  (test_update4): Update the list of expected paths on platforms where the
    canonical path format and platform path format don't match, to fix test
    failure on the Windows buildbot.

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

Modified: subversion/trunk/subversion/bindings/swig/python/tests/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/client.py?rev=1594814&r1=1594813&r2=1594814&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/client.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/client.py Thu May 15 08:18:52 2014
@@ -462,14 +462,19 @@ class SubversionClientTestCase(unittest.
     self.notified_paths = []
     client.update4((path,), rev, core.svn_depth_unknown, True, False, False,
                    False, False, self.client_ctx)
-    self.assertEquals(self.notified_paths,
-                      [  path,
-                         os.path.join(path, 'branches'),
-                         os.path.join(path, 'tags'),
-                         os.path.join(path, 'trunk'),
-                         path,
-                         path
-                      ])
+    expected_paths = [
+        path,
+        os.path.join(path, 'branches'),
+        os.path.join(path, 'tags'),
+        os.path.join(path, 'trunk'),
+        path,
+        path
+    ]
+    # All normal subversion apis process paths in Subversion's canonical format,
+    # which isn't the platform specific format
+    expected_paths = [x.replace(os.path.sep, '/') for x in expected_paths]
+    
+    self.assertEquals(self.notified_paths, expected_paths)
 
     def notify_func2(notify, pool):
         self.notified_paths.append(notify.path)



Mime
View raw message