From 76b781754bfefe21706762442c422bac523701e4 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 14 Mar 2022 19:21:01 -0400 Subject: Use args, not kwargs, to retain py2 compat for now --- tests/test_pkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_pkey.py') 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 ( -- cgit v1.2.3