Rev 886: Fix tests for windows. in file:///data/jelmer/bzr-svn/0.4.8/
Jelmer Vernooij
jelmer at samba.org
Tue Mar 11 17:13:44 GMT 2008
At file:///data/jelmer/bzr-svn/0.4.8/
------------------------------------------------------------
revno: 886
revision-id:jelmer at samba.org-20080311171343-5qv4g5g8m0rx6wzq
parent: jelmer at samba.org-20080311171204-azsnckdest9kjmzj
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:13:43 +0100
message:
Fix tests for windows.
modified:
tests/test_transport.py test_transport.py-20060621232111-xh7xvoblzsrgj79t-1
=== modified file 'tests/test_transport.py'
--- a/tests/test_transport.py 2007-10-09 12:27:42 +0000
+++ b/tests/test_transport.py 2008-03-11 17:13:43 +0000
@@ -18,6 +18,7 @@
from tests import TestCaseWithSubversionRepository
from bzrlib.errors import NotBranchError, NoSuchFile, FileExists, InvalidURL
+from bzrlib import urlutils
from transport import SvnRaTransport, bzr_to_svn_url
from unittest import TestCase
@@ -115,7 +116,7 @@
t = SvnRaTransport(repos_url)
tt = t.clone()
self.assertEqual(tt.base, t.base)
- tt.reparent(os.path.join(t.base, "dir"))
+ tt.reparent(urlutils.join(t.base, "dir"))
self.assertNotEqual(tt.base, t.base)
def test_mkdir(self):
@@ -173,7 +174,7 @@
def test_local_abspath(self):
repos_url = self.make_client('d', 'dc')
t = SvnRaTransport("%s" % repos_url)
- self.assertEquals(os.path.join(self.test_dir, "d"), t.local_abspath('.'))
+ self.assertEquals(urlutils.join(self.test_dir, "d"), t.local_abspath('.'))
class UrlConversionTest(TestCase):
More information about the bazaar-commits
mailing list