diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-09-30 09:10:51 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-09-30 09:10:51 -0700 |
commit | e8f1c413895fb27fac36b648deaab96d4c20ba25 (patch) | |
tree | 10d9393b72026545ca7625c1468e351af819afd0 /tests | |
parent | 08cf9dc0d2a54e2e78509d093757dfb4a23dc4f2 (diff) |
Try removing some unused code?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index a9a3a130..5f16e3cf 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -275,8 +275,6 @@ class SSHClientTest (unittest.TestCase): if not PY2: return threading.Thread(target=self._run).start() - host_key = paramiko.RSAKey.from_private_key_file(test_path('test_rsa.key')) - public_host_key = paramiko.RSAKey(data=host_key.asbytes()) self.tc = paramiko.SSHClient() self.tc.set_missing_host_key_policy(paramiko.AutoAddPolicy()) @@ -293,12 +291,13 @@ class SSHClientTest (unittest.TestCase): del self.tc # force a collection to see whether the SSHClient object is deallocated - # correctly; 4 GCs are needed to make sure it's really collected on + # correctly; 5 GCs are needed to make sure it's really collected on # PyPy gc.collect() gc.collect() gc.collect() gc.collect() + gc.collect() self.assertTrue(p() is None) @@ -307,8 +306,6 @@ class SSHClientTest (unittest.TestCase): verify that an SSHClient can be used a context manager """ threading.Thread(target=self._run).start() - host_key = paramiko.RSAKey.from_private_key_file(test_path('test_rsa.key')) - public_host_key = paramiko.RSAKey(data=host_key.asbytes()) with paramiko.SSHClient() as tc: self.tc = tc |