diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-09-26 12:16:14 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-09-27 10:18:25 -0500 |
commit | e04f6fc6fcc5105ce66279eacd9df0683d538ee9 (patch) | |
tree | 09b2adebd16cc9bf8ae0ff2fae7e96bfb646fdff | |
parent | 77c1a02b5dac60bcb857ff83b70e67250302a0a2 (diff) | |
download | cryptography-e04f6fc6fcc5105ce66279eacd9df0683d538ee9.tar.gz cryptography-e04f6fc6fcc5105ce66279eacd9df0683d538ee9.tar.bz2 cryptography-e04f6fc6fcc5105ce66279eacd9df0683d538ee9.zip |
remove duplicate _skip_curve_unsupported
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 10 |
1 files changed, 1 insertions, 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" |