summaryrefslogtreecommitdiff
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r--tests/test_pkey.py4
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