From 39e301117054bf2f3f3df5aba757b3f82d03fc0b Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 21 Jan 2024 05:39:18 -0500 Subject: [PATCH] Remove unused test utility (#10216) --- tests/hazmat/backends/test_openssl.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index faa291668..ca3a82abc 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -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()