mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Remove unused test utility (#10216)
This commit is contained in:
parent
742267b159
commit
39e3011170
1 changed files with 0 additions and 14 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue