Use the better variable name

This commit is contained in:
Jean-Paul Calderone 2019-08-14 09:23:11 -04:00
parent 079ffbd874
commit 42f6a5609f

View File

@ -36,7 +36,9 @@ class Handler(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, unittest.TestCas
"""This is a no-network unit test of the SFTPUserHandler and the abstractions it uses."""
if conch_unavailable_reason:
skip = "SFTP support requires Twisted Conch which is not available: {}".format(e)
skip = "SFTP support requires Twisted Conch which is not available: {}".format(
conch_unavailable_reason,
)
def shouldFailWithSFTPError(self, expected_code, which, callable, *args, **kwargs):
assert isinstance(expected_code, int), repr(expected_code)