diff --git a/tests/hazmat/primitives/test_pkcs7.py b/tests/hazmat/primitives/test_pkcs7.py index 4c4c0aa7dd50..7079f5b14a7d 100644 --- a/tests/hazmat/primitives/test_pkcs7.py +++ b/tests/hazmat/primitives/test_pkcs7.py @@ -149,10 +149,6 @@ def _pkcs7_verify(encoding, sig, msg, certs, options, backend): p7, backend._ffi.NULL, store, msg_bio.bio, out_bio, flags ) backend.openssl_assert(res == 1) - # OpenSSL 3.0 leaves a random bio error on the stack: - # https://github.com/openssl/openssl/issues/16681 - if rust_openssl.CRYPTOGRAPHY_OPENSSL_300_OR_GREATER: - backend._consume_errors() def _load_cert_key():