~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2010-08-30 07:42:12 UTC
  • mfrom: (5247.2.39 catch-them-all)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100830074212-y0vj6t3sm1zr706y
Fix most of the leaking tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1286
1286
        # should be asked to ConnectedTransport only.
1287
1287
        return None
1288
1288
 
 
1289
    def disconnect(self):
 
1290
        # This is really needed for ConnectedTransport only, but it's easier to
 
1291
        # have Transport do nothing than testing that the disconnect should be
 
1292
        # asked to ConnectedTransport only.
 
1293
        pass
 
1294
 
1289
1295
    def _redirected_to(self, source, target):
1290
1296
        """Returns a transport suitable to re-issue a redirected request.
1291
1297
 
1550
1556
            transport = self.__class__(other_base, _from_transport=self)
1551
1557
        return transport
1552
1558
 
 
1559
    def disconnect(self):
 
1560
        """Disconnect the transport.
 
1561
 
 
1562
        If and when required the transport willl reconnect automatically.
 
1563
        """
 
1564
        raise NotImplementedError(self.disconnect)
 
1565
 
1553
1566
 
1554
1567
def get_transport(base, possible_transports=None):
1555
1568
    """Open a transport to access a URL or directory.