aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-06-24 20:09:43 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-06-24 20:09:43 -0500
commit22e69b58a95d69cc0001d16f888411cf52db96e1 (patch)
tree72498d4f442e742be9e2a70c4940be45fe7e4519 /tests/hazmat/backends
parent87d61f8a6efdf1f9b0a0d6e8c59e323e6004ec72 (diff)
downloadcryptography-22e69b58a95d69cc0001d16f888411cf52db96e1.tar.gz
cryptography-22e69b58a95d69cc0001d16f888411cf52db96e1.tar.bz2
cryptography-22e69b58a95d69cc0001d16f888411cf52db96e1.zip
Skip tests when the EC curve is unsupported
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 4275b593..6c741c89 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -30,6 +30,7 @@ from cryptography.hazmat.primitives.ciphers.modes import CBC, CTR, Mode
from ..primitives.fixtures_dsa import DSA_KEY_2048
from ..primitives.fixtures_rsa import RSA_KEY_2048, RSA_KEY_512
+from ..primitives.test_ec import _skip_curve_unsupported
from ...utils import load_vectors_from_file, raises_unsupported_algorithm
@@ -470,6 +471,7 @@ class TestOpenSSLCreateX509CSR(object):
reason="Requires an older OpenSSL. Must be < 1.0.1"
)
def test_unsupported_ec_keys(self):
+ _skip_curve_unsupported(backend, ec.SECT283K1())
private_key = ec.generate_private_key(ec.SECT283K1(), backend)
with pytest.raises(NotImplementedError):