Rev 2991: ConnectedTransport._reuse_for fails to deal with local URLs. in file:///v/home/vila/src/bzr/bugs/161819/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Nov 14 07:56:56 GMT 2007
At file:///v/home/vila/src/bzr/bugs/161819/
------------------------------------------------------------
revno: 2991
revision-id:v.ladeuil+lp at free.fr-20071114075654-fnlbodh0xzc68h24
parent: pqm at pqm.ubuntu.com-20071114070314-fdmaj14v4x59z1yv
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 161819
timestamp: Wed 2007-11-14 08:56:54 +0100
message:
ConnectedTransport._reuse_for fails to deal with local URLs.
* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test__reuse_for): Reproduce bug 161819.
modified:
bzrlib/tests/test_transport_implementations.py test_transport_implementations.py-20051227111451-f97c5c7d5c49fce7
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transport_implementations.py'
--- a/bzrlib/tests/test_transport_implementations.py 2007-11-04 15:29:17 +0000
+++ b/bzrlib/tests/test_transport_implementations.py 2007-11-14 07:56:54 +0000
@@ -1151,6 +1151,9 @@
else:
port = 1234
self.assertIsNot(t, t._reuse_for(new_url(port=port)))
+ # No point in trying to reuse a transport for a local URL
+ self.assertRaises(errors.InvalidURL,
+ t._reuse_for('/valid_but_not_existing'))
def test_connection_sharing(self):
t = self.get_transport()
More information about the bazaar-commits
mailing list