Remove unused test utility (#10216)

This commit is contained in:
Alex Gaynor 2024-01-21 05:39:18 -05:00 committed by GitHub
parent 742267b159
commit 39e3011170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,20 +35,6 @@ from ...utils import (
__all__ = ["rsa_key_2048"]
def skip_if_libre_ssl(openssl_version):
if "LibreSSL" in openssl_version:
pytest.skip("LibreSSL hard-codes RAND_bytes to use arc4random.")
class TestLibreSkip:
def test_skip_no(self):
assert skip_if_libre_ssl("OpenSSL 1.0.2h 3 May 2016") is None
def test_skip_yes(self):
with pytest.raises(pytest.skip.Exception):
skip_if_libre_ssl("LibreSSL 2.1.6")
class DummyMGF(padding.MGF):
_salt_length = 0
_algorithm = hashes.SHA1()