From dd7c91d57869360e3f34c6564e1b3beff65b3d39 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sat, 8 Jun 2019 13:26:37 -0400 Subject: flake8 now applied to tests, huzzah --- tests/test_hostkeys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_hostkeys.py') 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: -- cgit v1.2.3