Skip to content

Commit

Permalink
Remove unneeded import
Browse files Browse the repository at this point in the history
  • Loading branch information
vEpiphyte committed Dec 15, 2022
1 parent 45c535f commit 66dd43f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from subprocess import PIPE, Popen
from warnings import simplefilter

import OpenSSL.crypto
from cryptography import x509
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import ec, ed25519, ed448, rsa
Expand Down Expand Up @@ -4291,7 +4290,7 @@ def test_verify_with_partial_chain(self):
store.add_cert(self.intermediate_cert)

store_ctx = X509StoreContext(store, self.intermediate_server_cert)
with pytest.raises(OpenSSL.crypto.X509StoreContextError):
with pytest.raises(X509StoreContextError):
store_ctx.verify_certificate()

# Now set the partial verification flag for verification.
Expand Down

0 comments on commit 66dd43f

Please sign in to comment.