summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-xtests/test_sftp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 5031f02f..280f82d6 100755
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -68,9 +68,10 @@ g_big_file_test = True
class SFTPTest (unittest.TestCase):
def init(hostname, username, keyfile, passwd):
- global sftp
+ global sftp, tc
t = paramiko.Transport(hostname)
+ tc = t
try:
key = paramiko.RSAKey.from_private_key_file(keyfile, passwd)
except paramiko.PasswordRequiredException: