diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-08 13:26:37 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-08 13:26:37 -0400 |
commit | dd7c91d57869360e3f34c6564e1b3beff65b3d39 (patch) | |
tree | ac5e2f31189be466748aebea8d2b3009481e6982 /tests/test_hostkeys.py | |
parent | 17e412eb7c249a4cc536e70deebd3d889e07e252 (diff) |
flake8 now applied to tests, huzzah
Diffstat (limited to 'tests/test_hostkeys.py')
-rw-r--r-- | tests/test_hostkeys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_hostkeys.py b/tests/test_hostkeys.py index 535ac6a4..da47362c 100644 --- a/tests/test_hostkeys.py +++ b/tests/test_hostkeys.py @@ -122,10 +122,10 @@ class HostKeysTest(unittest.TestCase): def test_delitem(self): hostdict = paramiko.HostKeys("hostfile.temp") target = "happy.example.com" - entry = hostdict[target] # will KeyError if not present + hostdict[target] # will KeyError if not present del hostdict[target] try: - entry = hostdict[target] + hostdict[target] except KeyError: pass # Good else: |