[Zope-CVS] SVN: zpkgtools/trunk/zpkgtools/tests/test_svnloader.py
Be more careful in constructing file: URLs.
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Sep 17 13:16:05 EDT 2004
Log message for revision 27616:
Be more careful in constructing file: URLs.
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 17:08:11 UTC (rev 27615)
+++ zpkgtools/trunk/zpkgtools/tests/test_svnloader.py 2004-09-17 17:16:05 UTC (rev 27616)
@@ -17,6 +17,7 @@
import shutil
import unittest
+from zpkgsetup import urlutils
from zpkgsetup.tests import tempfileapi as tempfile
from zpkgtools import cvsloader
@@ -260,7 +261,11 @@
SubversionUrlTestCase):
"""Test handling of file:///... URLs."""
+ def mkurl(self, path):
+ root = urlutils.pathname2url(self.SVNROOT)
+ return "file://%s%s%s" % (self.HOSTPART, root, path)
+
class SubversionLocalhostFileUrlTestCase(SubversionFileUrlTestCase):
"""Test handling of file://localhost/... URLs."""
More information about the Zope-CVS
mailing list