diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-08 16:06:10 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-08 16:06:10 -0500 |
commit | 6a49021948b790e19b1875fa00c6a9797bc72c90 (patch) | |
tree | adc1296de4084d4644593c983d859199ed786e22 /tests | |
parent | c5d886a0c1d160147578a52b9ed83c6a40708788 (diff) | |
download | cryptography-6a49021948b790e19b1875fa00c6a9797bc72c90.tar.gz cryptography-6a49021948b790e19b1875fa00c6a9797bc72c90.tar.bz2 cryptography-6a49021948b790e19b1875fa00c6a9797bc72c90.zip |
make tests properly skip on OpenSSLs without EC support
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_ec.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index 73201f8e..40b1741c 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -559,6 +559,7 @@ class TestECSerialization(object): @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend) class TestEllipticCurvePEMPublicKeySerialization(object): def test_public_bytes_unencrypted_pem(self, backend): + _skip_curve_unsupported(backend, ec.SECP256R1()) key_bytes = load_vectors_from_file( os.path.join( "asymmetric", "PEM_Serialization", "ec_public_key.pem" @@ -574,6 +575,7 @@ class TestEllipticCurvePEMPublicKeySerialization(object): assert serialized == key_bytes def test_public_bytes_invalid_encoding(self, backend): + _skip_curve_unsupported(backend, ec.SECP256R1()) key = load_vectors_from_file( os.path.join( "asymmetric", "PEM_Serialization", "ec_public_key.pem" @@ -590,6 +592,7 @@ class TestEllipticCurvePEMPublicKeySerialization(object): ) def test_public_bytes_invalid_format(self, backend): + _skip_curve_unsupported(backend, ec.SECP256R1()) key = load_vectors_from_file( os.path.join( "asymmetric", "PEM_Serialization", "ec_public_key.pem" @@ -603,6 +606,7 @@ class TestEllipticCurvePEMPublicKeySerialization(object): key.public_bytes(serialization.Encoding.PEM, "invalidformat") def test_public_bytes_pkcs1_unsupported(self, backend): + _skip_curve_unsupported(backend, ec.SECP256R1()) key = load_vectors_from_file( os.path.join( "asymmetric", "PEM_Serialization", "ec_public_key.pem" |