Skip to content

Commit

Permalink
Skip more tests related to old OpenSSL algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
ycedres committed Jul 31, 2024
1 parent 522b233 commit afd9ee4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/pytests/functional/modules/test_x509_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,10 @@ def test_create_csr_raw(x509, rsa_privkey):
@pytest.mark.slow_test
@pytest.mark.parametrize("algo", ["rsa", "ec", "ed25519", "ed448"])
def test_create_private_key(x509, algo):
res = x509.create_private_key(algo=algo)
try:
res = x509.create_private_key(algo=algo)
except UnsupportedAlgorithm:
pytest.skip("Algorithm '{algo}' is not supported on this OpenSSL version")
assert res.startswith("-----BEGIN PRIVATE KEY-----")


Expand Down

0 comments on commit afd9ee4

Please sign in to comment.