diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-23 11:01:25 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-23 11:01:25 -0700 |
commit | 7aab8b4ae4f5ab1710a985551c4105d608f5b852 (patch) | |
tree | fc0e9096c155374259b88f3d3404083f992e8836 /tests/hazmat/primitives/test_ec.py | |
parent | a05af52d1f0fba90030b62185d38523119d68b42 (diff) | |
download | cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.gz cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.bz2 cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.zip |
Change how we represented that a test requires a backend.
This way is more extensible and requires less maintaince
Diffstat (limited to 'tests/hazmat/primitives/test_ec.py')
-rw-r--r-- | tests/hazmat/primitives/test_ec.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index 1b3bb9b3..decb3716 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -80,7 +80,7 @@ class DeprecatedDummyECBackend(object): return b"public_key" -@pytest.mark.elliptic +@pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) def test_skip_curve_unsupported(backend): with pytest.raises(pytest.skip.Exception): _skip_curve_unsupported(backend, DummyCurve()) @@ -138,7 +138,7 @@ def test_ec_numbers(): ) -@pytest.mark.elliptic +@pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) class TestECWithNumbers(object): @pytest.mark.parametrize( ("vector", "hash_type"), @@ -174,7 +174,7 @@ class TestECWithNumbers(object): assert curve_type().name == priv_num.public_numbers.curve.name -@pytest.mark.elliptic +@pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) class TestECDSAVectors(object): @pytest.mark.parametrize( ("vector", "hash_type"), |