~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-29 04:35:40 UTC
  • mfrom: (2381.1.4 hpss-test-correctness)
  • Revision ID: pqm@pqm.ubuntu.com-20070329043540-952aff23533c1c26
(robertc) Various test suite changes and cleanups in preparation for the next hpss branch. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    ssh,
57
57
    Transport,
58
58
    )
 
59
from bzrlib.transport.local import LocalURLServer
59
60
 
60
61
try:
61
62
    import paramiko
1068
1069
        ssh_server.start_server(event, server)
1069
1070
        event.wait(5.0)
1070
1071
    
1071
 
    def setUp(self):
 
1072
    def setUp(self, vfs_server=None):
 
1073
        # XXX: TODO: make sftpserver back onto vfs_server rather than local disk.
 
1074
        assert vfs_server is None or isinstance(vfs_server, LocalURLServer), \
 
1075
            "SFTPServer currently assumes local transport, got %s" % vfs_server
1072
1076
        self._original_vendor = ssh._ssh_vendor_manager._cached_ssh_vendor
1073
1077
        ssh._ssh_vendor_manager._cached_ssh_vendor = self._vendor
1074
1078
        if sys.platform == 'win32':