summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-03-14 19:21:01 -0400
committerJeff Forcier <jeff@bitprophet.org>2022-03-14 19:23:40 -0400
commit76b781754bfefe21706762442c422bac523701e4 (patch)
tree18c662d43922a463e173f97b531d44d7edac8ffd /tests/test_pkey.py
parentabbf52a8c390b38ab4b8d83fc23bbaab3a31abb4 (diff)
Use args, not kwargs, to retain py2 compat for now
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r--tests/test_pkey.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index 97b406c2..cff99aac 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -719,9 +719,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, flags=os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mode=o600
+ new, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, o600
)
- os_.fdopen.assert_called_once_with(os_.open.return_value, mode="w")
+ 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 (