Skip to content

Commit 369395c

Browse files
committed
Remove unneeded import
1 parent 08468b2 commit 369395c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_crypto.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from subprocess import PIPE, Popen
1111
from warnings import simplefilter
1212

13-
import OpenSSL.crypto
1413
from cryptography import x509
1514
from cryptography.hazmat.primitives import serialization
1615
from cryptography.hazmat.primitives.asymmetric import ec, ed25519, ed448, rsa
@@ -4291,7 +4290,7 @@ def test_verify_with_partial_chain(self):
42914290
store.add_cert(self.intermediate_cert)
42924291

42934292
store_ctx = X509StoreContext(store, self.intermediate_server_cert)
4294-
with pytest.raises(OpenSSL.crypto.X509StoreContextError):
4293+
with pytest.raises(X509StoreContextError):
42954294
store_ctx.verify_certificate()
42964295

42974296
# Now set the partial verification flag for verification.

0 commit comments

Comments
 (0)