~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ssh.py

  • Committer: Vincent Ladeuil
  • Date: 2008-01-29 08:40:53 UTC
  • mto: (3206.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3207.
  • Revision ID: v.ladeuil+lp@free.fr-20080129084053-sunwf549ox6zczqr
Fix two more leaked log files.

* bzrlib/tests/test_http.py:
(TestHttpProxyWhiteBox.tearDown): Call the base class tearDown.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    register_ssh_vendor('paramiko', vendor)
332
332
    register_ssh_vendor('none', vendor)
333
333
    register_default_ssh_vendor(vendor)
 
334
    _sftp_connection_errors = (EOFError, paramiko.SSHException)
334
335
    del vendor
 
336
else:
 
337
    _sftp_connection_errors = (EOFError,)
335
338
 
336
339
 
337
340
class SubprocessVendor(SSHVendor):
350
353
                                                  subsystem='sftp')
351
354
            sock = self._connect(argv)
352
355
            return SFTPClient(sock)
353
 
        except (EOFError, paramiko.SSHException), e:
 
356
        except _sftp_connection_errors, e:
354
357
            self._raise_connection_error(host, port=port, orig_error=e)
355
358
        except (OSError, IOError), e:
356
359
            # If the machine is fast enough, ssh can actually exit