From 20034b110a9e8b4e0b539bd0b8e28aa510ec9afc Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 15 Oct 2013 19:10:53 -0500 Subject: add pragma: no cover to handle coverage in the tests for the moment --- tests/primitives/test_cryptrec.py | 2 +- tests/primitives/test_openssl_vectors.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/primitives') diff --git a/tests/primitives/test_cryptrec.py b/tests/primitives/test_cryptrec.py index de26ebd2..121e62cb 100644 --- a/tests/primitives/test_cryptrec.py +++ b/tests/primitives/test_cryptrec.py @@ -50,7 +50,7 @@ class TestCamelliaECB(object): ] ) def test_NTT(self, key, plaintext, ciphertext, api): - if not api.supports_cipher("camellia-128-ecb"): + if not api.supports_cipher("camellia-128-ecb"): # pragma: no cover pytest.skip("Does not support Camellia ECB") cipher = BlockCipher( ciphers.Camellia(binascii.unhexlify(key)), diff --git a/tests/primitives/test_openssl_vectors.py b/tests/primitives/test_openssl_vectors.py index acb982a5..d30efa5c 100644 --- a/tests/primitives/test_openssl_vectors.py +++ b/tests/primitives/test_openssl_vectors.py @@ -48,7 +48,7 @@ class TestCamelliaCBC(object): ) def test_OpenSSL(self, key, iv, plaintext, ciphertext, api): if not api.supports_cipher("camellia-128-cbc"): - pytest.skip("Does not support Camellia CBC") + pytest.skip("Does not support Camellia CBC") # pragma: no cover cipher = BlockCipher( ciphers.Camellia(binascii.unhexlify(key)), modes.CBC(binascii.unhexlify(iv)), @@ -69,7 +69,7 @@ class TestCamelliaOFB(object): ) def test_OpenSSL(self, key, iv, plaintext, ciphertext, api): if not api.supports_cipher("camellia-128-ofb"): - pytest.skip("Does not support Camellia OFB") + pytest.skip("Does not support Camellia OFB") # pragma: no cover cipher = BlockCipher( ciphers.Camellia(binascii.unhexlify(key)), modes.OFB(binascii.unhexlify(iv)), @@ -90,7 +90,7 @@ class TestCamelliaCFB(object): ) def test_OpenSSL(self, key, iv, plaintext, ciphertext, api): if not api.supports_cipher("camellia-128-cfb"): - pytest.skip("Does not support Camellia CFB") + pytest.skip("Does not support Camellia CFB") # pragma: no cover cipher = BlockCipher( ciphers.Camellia(binascii.unhexlify(key)), modes.CFB(binascii.unhexlify(iv)), -- cgit v1.2.3