Rev 4702: Review feedback. in http://bazaar.launchpad.net/~lifeless/bzr/test-speed

Robert Collins robertc at robertcollins.net
Tue Sep 22 05:23:17 BST 2009


At http://bazaar.launchpad.net/~lifeless/bzr/test-speed

------------------------------------------------------------
revno: 4702
revision-id: robertc at robertcollins.net-20090922042314-7oodfitj2l0i8doe
parent: robertc at robertcollins.net-20090918065438-vagan0yap39j89xl
committer: Robert Collins <robertc at robertcollins.net>
branch nick: test-speed
timestamp: Tue 2009-09-22 14:23:14 +1000
message:
  Review feedback.
=== modified file 'bzrlib/tests/test_transport.py'
--- a/bzrlib/tests/test_transport.py	2009-09-18 06:54:38 +0000
+++ b/bzrlib/tests/test_transport.py	2009-09-22 04:23:14 +0000
@@ -870,10 +870,12 @@
         # variable is used to tell bzr what command to run on the remote end.
         path_to_branch = osutils.abspath('.')
         if sys.platform == 'win32':
-            path_to_branch = os.path.splitdrive(path_to_branch)[1]
-        url_suffix = '@localhost:%d%s' % (port, path_to_branch)
-        self.permit_url('bzr+ssh://fred' + url_suffix)
-        t = get_transport('bzr+ssh://fred:secret' + url_suffix)
+            # On Windows, we export all drives as '/C:/, etc. So we need to
+            # prefix a '/' to get the right path.
+            path_to_branch = '/' + path_to_branch
+        url = 'bzr+ssh://fred:secret@localhost:%d%s' % (port, path_to_branch)
+        t = get_transport(url)
+        self.permit_url(t.base)
         t.mkdir('foo')
 
         self.assertEqual(




More information about the bazaar-commits mailing list