diff options
-rw-r--r-- | tests/test_pkey.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py index d44a96ac..97b406c2 100644 --- a/tests/test_pkey.py +++ b/tests/test_pkey.py @@ -718,7 +718,9 @@ class KeyTest(unittest.TestCase): # Write out in new location key.write_private_key_file(new, password=newpassword) # Expected open via os module - os_.open.assert_called_once_with(new, flags=os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mode=o600) + os_.open.assert_called_once_with( + new, flags=os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mode=o600 + ) os_.fdopen.assert_called_once_with(os_.open.return_value, mode="w") # Old chmod still around for backwards compat os_.chmod.assert_called_once_with(new, o600) |