[Zope-CVS] SVN: zpkgtools/trunk/zpkgtools/tests/test_svnloader.py fix generation of file: URLs in one more place; this is needed to be

Fred L. Drake, Jr. fdrake at gmail.com
Fri Sep 17 17:23:29 EDT 2004


Log message for revision 27626:
  fix generation of file: URLs in one more place; this is needed to be
  cross-platform
  


Changed:
  U   zpkgtools/trunk/zpkgtools/tests/test_svnloader.py


-=-
Modified: zpkgtools/trunk/zpkgtools/tests/test_svnloader.py
===================================================================
--- zpkgtools/trunk/zpkgtools/tests/test_svnloader.py	2004-09-17 21:12:41 UTC (rev 27625)
+++ zpkgtools/trunk/zpkgtools/tests/test_svnloader.py	2004-09-17 21:23:29 UTC (rev 27626)
@@ -58,6 +58,10 @@
     TYPE = "file"
     HOSTPART = ""
 
+    def mkurl(self, path):
+        root = urlutils.pathname2url(self.SVNROOT)
+        return "file://%s%s%s" % (self.HOSTPART, root, path)
+
     def setUp(self):
         super(SubversionLocalRepositoryBase, self).setUp()
         self.svnrepodir = tempfile.mkdtemp()



More information about the Zope-CVS mailing list