From 9a97cb93205b5785423bac9cae9288310f3b0c5a Mon Sep 17 00:00:00 2001 From: Ayrx Date: Tue, 22 Apr 2014 12:55:48 +0800 Subject: Added test skip for test_copy_with_backend() --- tests/hazmat/primitives/test_cmac.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3