Rev 4801: Per review recommendation, use 'osutils.abspath' instead of hardcoded string. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted
John Arbash Meinel
john at arbash-meinel.com
Mon Nov 16 19:59:44 GMT 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted
------------------------------------------------------------
revno: 4801
revision-id: john at arbash-meinel.com-20091116195940-aeezk2bd81lehffs
parent: john at arbash-meinel.com-20091116195812-8ygc119us2672xpp
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-win32-accepted
timestamp: Mon 2009-11-16 13:59:40 -0600
message:
Per review recommendation, use 'osutils.abspath' instead of hardcoded string.
-------------- next part --------------
=== modified file 'bzrlib/tests/blackbox/test_serve.py'
--- a/bzrlib/tests/blackbox/test_serve.py 2009-11-08 01:36:32 +0000
+++ b/bzrlib/tests/blackbox/test_serve.py 2009-11-16 19:59:40 +0000
@@ -278,9 +278,8 @@
(optionally decorated with 'readonly+'). BzrServerFactory can
determine the original --directory from that transport.
"""
- base_dir = '/a/b/c/'
- if sys.platform == 'win32':
- base_dir = 'C:/a/b/c/'
+ # URLs always include the trailing slash, and get_base_path returns it
+ base_dir = osutils.abspath('/a/b/c') + '/'
# Define a fake 'protocol' to capture the transport that cmd_serve
# passes to serve_bzr.
def capture_transport(transport, host, port, inet):
More information about the bazaar-commits
mailing list