mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
Suppress errors in test_sftp
This commit is contained in:
parent
b0803a2ac0
commit
fc19d1baf4
@ -9,18 +9,15 @@ from twisted.python.failure import Failure
|
|||||||
from twisted.internet.error import ProcessDone, ProcessTerminated
|
from twisted.internet.error import ProcessDone, ProcessTerminated
|
||||||
from allmydata.util import deferredutil
|
from allmydata.util import deferredutil
|
||||||
|
|
||||||
conch_interfaces = None
|
|
||||||
sftp = None
|
|
||||||
sftpd = None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from twisted.conch import interfaces as conch_interfaces
|
from twisted.conch import interfaces as conch_interfaces
|
||||||
from twisted.conch.ssh import filetransfer as sftp
|
from twisted.conch.ssh import filetransfer as sftp
|
||||||
from allmydata.frontends import sftpd
|
from allmydata.frontends import sftpd
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
conch_interfaces = sftp = sftpd = None # type: ignore
|
||||||
conch_unavailable_reason = e
|
conch_unavailable_reason = e
|
||||||
else:
|
else:
|
||||||
conch_unavailable_reason = None
|
conch_unavailable_reason = None # type: ignore
|
||||||
|
|
||||||
from allmydata.interfaces import IDirectoryNode, ExistingChildError, NoSuchChildError
|
from allmydata.interfaces import IDirectoryNode, ExistingChildError, NoSuchChildError
|
||||||
from allmydata.mutable.common import NotWriteableError
|
from allmydata.mutable.common import NotWriteableError
|
||||||
|
Loading…
Reference in New Issue
Block a user