diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 19:52:31 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 19:56:22 -0500 |
commit | 09ff0aadf42c2b932d44926b5625b2c8645bc07c (patch) | |
tree | 18b286577b738e808da1844a83c5b2898c5b1059 /tests | |
parent | b5f0758cbdad5991eaee360b84fb66b571236357 (diff) |
Nuke now extraneous chmod
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pkey.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py index e2d0a1af..4d74d8aa 100644 --- a/tests/test_pkey.py +++ b/tests/test_pkey.py @@ -731,11 +731,9 @@ class KeyTest(unittest.TestCase): key.write_private_key_file(new, password=newpassword) # Expected open via os module os_.open.assert_called_once_with( - new, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, o600 + new, flags=os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mode=o600 ) os_.fdopen.assert_called_once_with(os_.open.return_value, "w") - # Old chmod still around for backwards compat - os_.chmod.assert_called_once_with(new, o600) assert ( key._write_private_key.call_args[0][0] == os_.fdopen.return_value.__enter__.return_value |