From e04f6fc6fcc5105ce66279eacd9df0683d538ee9 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 26 Sep 2014 12:16:14 -0500 Subject: remove duplicate _skip_curve_unsupported --- tests/hazmat/backends/test_openssl.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index eecc7942..bfe6040e 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -34,18 +34,10 @@ from cryptography.hazmat.primitives.ciphers.algorithms import AES from cryptography.hazmat.primitives.ciphers.modes import CBC, CTR from cryptography.hazmat.primitives.interfaces import BlockCipherAlgorithm +from ..primitives.test_ec import _skip_curve_unsupported from ...utils import load_vectors_from_file, raises_unsupported_algorithm -def _skip_curve_unsupported(backend, curve): - if not backend.elliptic_curve_supported(curve): - pytest.skip( - "Curve {0} is not supported by this backend {1}".format( - curve.name, backend - ) - ) - - @utils.register_interface(interfaces.Mode) class DummyMode(object): name = "dummy-mode" -- cgit v1.2.3