diff tests/test_svnwrap.py @ 480:7fa100ae1a11

Avoid 'Abort: Illegal repository URL' exception
author Risto Kankkunen <risto.kankkunen@iki.fi>
date Wed, 29 Jul 2009 17:41:40 +0300
parents 83fcb1cf6d8f
children e5a9c824ffbf
line wrap: on
line diff
--- a/tests/test_svnwrap.py
+++ b/tests/test_svnwrap.py
@@ -22,7 +22,7 @@ class TestBasicRepoLayout(unittest.TestC
                                 stdout=subprocess.PIPE,
                                 stderr=subprocess.STDOUT)
         assert proc == 0
-        self.repo = svnwrap.SubversionRepo('file://%s' % self.repo_path)
+        self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path))
 
     def tearDown(self):
         shutil.rmtree(self.tmpdir)
@@ -68,8 +68,10 @@ class TestRootAsSubdirOfRepo(TestBasicRe
                               stdout=subprocess.PIPE,
                               stderr=subprocess.STDOUT)
         assert ret == 0
-        self.repo = svnwrap.SubversionRepo('file://%s/dummyproj' %
-                                           self.repo_path)
+        self.repo = svnwrap.SubversionRepo(test_util.fileurl(
+            self.repo_path + '/dummyproj'
+        ))
+
 def suite():
     all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),
            unittest.TestLoader().loadTestsFromTestCase(TestRootAsSubdirOfRepo)]