From bc4a9fa290a837b2ca2874c0b014a070d5941082 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 12 Aug 2015 17:56:37 -0500 Subject: skip if check on ec test --- tests/hazmat/primitives/test_ec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/hazmat/primitives/test_ec.py') diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index f2e340be..59bdc525 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -715,7 +715,8 @@ class TestEllipticCurvePEMPublicKeySerialization(object): @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) class TestECDSAVerification(object): def test_signature_not_bytes(self, backend): - key = ec.generate_private_key(ec.SECP192R1(), backend) + _skip_curve_unsupported(backend, ec.SECP256R1()) + key = ec.generate_private_key(ec.SECP256R1(), backend) public_key = key.public_key() with pytest.raises(TypeError): public_key.verifier(1234, ec.ECDSA(hashes.SHA256())) -- cgit v1.2.3