diff tests/test_util.py @ 870:1eb2a4428c42

test_util: pass repo_path to svnco() explicitely
author Patrick Mezard <patrick@mezard.eu>
date Thu, 19 Apr 2012 18:29:30 +0200
parents db3a651494f9
children 51fd75ae62b9
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -353,12 +353,12 @@ class TestBase(unittest.TestCase):
         self.assertEqual(expected_extra_back, after - before)
         return res
 
-    def svnco(self, svnpath, rev, path):
+    def svnco(self, repo_path, svnpath, rev, path):
         path = os.path.join(self.wc_path, path)
         subpath = os.path.dirname(path)
         if not os.path.isdir(subpath):
             os.makedirs(subpath)
-        svnpath = fileurl(self.repo_path + '/' + svnpath)
+        svnpath = fileurl(repo_path + '/' + svnpath)
         args = ['svn', 'co', '-r', rev, svnpath, path]
         p = subprocess.Popen(args,
                              stdout=subprocess.PIPE,