diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 5 | ||||
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 10 |
2 files changed, 3 insertions, 12 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index f6b57964..20c073a4 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -576,10 +576,7 @@ class TestGOSTCertificate(object): x509.load_der_x509_certificate, backend ) - if ( - backend._lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I or - backend._lib.CRYPTOGRAPHY_IS_LIBRESSL - ): + if backend._lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I: with pytest.raises(ValueError) as exc: cert.subject diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index 449e581e..9b0da67c 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -21,10 +21,7 @@ class TestOpenSSL(object): def test_crypto_lock_init(self): b = Binding() - if ( - b.lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER and - not b.lib.CRYPTOGRAPHY_IS_LIBRESSL - ): + if b.lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER: pytest.skip("Requires an older OpenSSL. Must be < 1.1.0") b.init_static_locks() @@ -79,10 +76,7 @@ class TestOpenSSL(object): def test_conditional_removal(self): b = Binding() - if ( - b.lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER and - not b.lib.CRYPTOGRAPHY_IS_LIBRESSL - ): + if b.lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER: assert b.lib.TLS_ST_OK else: with pytest.raises(AttributeError): |