From 81edf66550d6ba271e3889ab50ccf73eb843b958 Mon Sep 17 00:00:00 2001 From: Michal Kuffa Date: Fri, 28 Jul 2017 14:27:31 +0200 Subject: Move assertions outside of the open context manager --- tests/test_pkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pkey.py b/tests/test_pkey.py index 89a3f74a..4121107a 100644 --- a/tests/test_pkey.py +++ b/tests/test_pkey.py @@ -469,8 +469,8 @@ class KeyTest(unittest.TestCase): def test_ed25519_load_from_file_obj(self): with open(test_path('test_ed25519.key')) as pkey_fileobj: key = Ed25519Key.from_private_key(pkey_fileobj) - self.assertEqual(key, key) - self.assertTrue(key.can_sign()) + self.assertEqual(key, key) + self.assertTrue(key.can_sign()) def test_keyfile_is_actually_encrypted(self): # Read an existing encrypted private key -- cgit v1.2.3