path to url should call pathname2url, so that the URL is consistent.
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 12 Mar 2012 16:32:02 +0000 (00:32 +0800)
committerYonggang Luo <luoyonggang@gmail.com>
Mon, 12 Mar 2012 16:32:02 +0000 (00:32 +0800)
1  2 
subvertpy/tests/__init__.py

index b7e3fd32d5b7955dd34ee3969def9188dc2ac554,c0e3d3fdec903957bb871de4ef00559874e4a4e0..2696cad628ab4e4452f8f3aad42283d806895950
@@@ -249,12 -250,7 +250,12 @@@ class SubversionTestCase(TestCaseInTemp
                  finally:
                      f.close()
                  os.chmod(revprop_hook, os.stat(revprop_hook).st_mode | 0111)
 -        return 'file:%s' % urllib.pathname2url(abspath)
 +
 +        if sys.platform == 'win32':
-             return "file:///%s" % abspath.replace("\\", "/")
++            return 'file:%s' % urllib.pathname2url(abspath)
 +        else:
 +            return "file://%s" % abspath
 +
  
      def make_checkout(self, repos_url, relpath):
          """Create a new checkout."""