File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1166,7 +1166,7 @@ def test_pem_encryption_missing_dek_info(self):
1166
1166
mode = "rb" ,
1167
1167
)
1168
1168
with pytest .raises (ValueError ):
1169
- load_pem_private_key (data , password = None )
1169
+ load_pem_private_key (data , password = b"password" )
1170
1170
1171
1171
def test_pem_encryption_malformed_dek_info (self ):
1172
1172
data = load_vectors_from_file (
@@ -1179,7 +1179,7 @@ def test_pem_encryption_malformed_dek_info(self):
1179
1179
mode = "rb" ,
1180
1180
)
1181
1181
with pytest .raises (ValueError ):
1182
- load_pem_private_key (data , password = None )
1182
+ load_pem_private_key (data , password = b"password" )
1183
1183
1184
1184
def test_pem_encryption_malformed_iv (self ):
1185
1185
data = load_vectors_from_file (
@@ -1192,7 +1192,7 @@ def test_pem_encryption_malformed_iv(self):
1192
1192
mode = "rb" ,
1193
1193
)
1194
1194
with pytest .raises (ValueError ):
1195
- load_pem_private_key (data , password = None )
1195
+ load_pem_private_key (data , password = b"password" )
1196
1196
1197
1197
1198
1198
class TestKeySerializationEncryptionTypes :
You can’t perform that action at this time.
0 commit comments