From 8c4c2233ec9a2b7943e24e1a158fec473024d474 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Thu, 1 Feb 2018 11:54:28 +1100 Subject: [PATCH] Mark test expected to fail on Travis due to old SSL --- tests/__init__.py | 2 ++ tests/test_aes.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index 82baa94..4d08dbd 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -97,6 +97,7 @@ class Is: softhsm2 = LIB.endswith('libsofthsm2.so') nfast = LIB.endswith('libcknfast.so') opencryptoki = LIB.endswith('libopencryptoki.so') + travis = os.environ.get('TRAVIS') == 'true' class Only: @@ -126,3 +127,4 @@ class FIXME: softhsm2 = xfail(Is.softhsm2) nfast = xfail(Is.nfast) opencryptoki = xfail(Is.opencryptoki) + travis = xfail(Is.travis) diff --git a/tests/test_aes.py b/tests/test_aes.py index 161480d..f4b39ec 100644 --- a/tests/test_aes.py +++ b/tests/test_aes.py @@ -107,6 +107,7 @@ def test_sign_stream(self): @requires(Mechanism.AES_KEY_WRAP) @FIXME.opencryptoki # can't set key attributes + @FIXME.travis # Travis has an old OpenSSL def test_wrap(self): key = self.session.generate_key(pkcs11.KeyType.AES, 128, template={ pkcs11.Attribute.EXTRACTABLE: True,