aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-04-22 12:55:48 +0800
committerAyrx <terrycwk1994@gmail.com>2014-04-22 12:55:48 +0800
commit9a97cb93205b5785423bac9cae9288310f3b0c5a (patch)
tree39c57d6858c9271a56b895adfe9165cda61f61b8 /tests/hazmat/primitives
parent3881917b59c49ab1616b61a696a74aa195c710e0 (diff)
downloadcryptography-9a97cb93205b5785423bac9cae9288310f3b0c5a.tar.gz
cryptography-9a97cb93205b5785423bac9cae9288310f3b0c5a.tar.bz2
cryptography-9a97cb93205b5785423bac9cae9288310f3b0c5a.zip
Added test skip for test_copy_with_backend()
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_cmac.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_cmac.py b/tests/hazmat/primitives/test_cmac.py
index f47f2c13..7ec4af68 100644
--- a/tests/hazmat/primitives/test_cmac.py
+++ b/tests/hazmat/primitives/test_cmac.py
@@ -181,6 +181,11 @@ class TestCMAC(object):
with pytest.raises(TypeError):
cmac.verify(six.u(''))
+ @pytest.mark.supported(
+ only_if=lambda backend: backend.cmac_algorithm_supported(
+ AES(fake_key)),
+ skip_message="Does not support CMAC."
+ )
def test_copy_with_backend(self, backend):
key = b"2b7e151628aed2a6abf7158809cf4f3c"
cmac = CMAC(AES(key), backend)