aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_commoncrypto.py
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2014-07-28 16:56:10 +0800
committerTerry Chia <terrycwk1994@gmail.com>2014-07-28 17:16:37 +0800
commit55971ba2331d5f3b907b1b0b80c0034f5ee11df7 (patch)
tree5cc61d457ab027d816f0e37a0bb5bf1fa1ee1873 /tests/hazmat/bindings/test_commoncrypto.py
parent361545d874dce498461b5586cfdf45249c07ebbe (diff)
downloadcryptography-55971ba2331d5f3b907b1b0b80c0034f5ee11df7.tar.gz
cryptography-55971ba2331d5f3b907b1b0b80c0034f5ee11df7.tar.bz2
cryptography-55971ba2331d5f3b907b1b0b80c0034f5ee11df7.zip
Fix test failures
Diffstat (limited to 'tests/hazmat/bindings/test_commoncrypto.py')
-rw-r--r--tests/hazmat/bindings/test_commoncrypto.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hazmat/bindings/test_commoncrypto.py b/tests/hazmat/bindings/test_commoncrypto.py
index 0332674b..71c832ef 100644
--- a/tests/hazmat/bindings/test_commoncrypto.py
+++ b/tests/hazmat/bindings/test_commoncrypto.py
@@ -15,10 +15,12 @@ from __future__ import absolute_import, division, print_function
import pytest
+from cryptography.hazmat.backends import _available_backends
from cryptography.hazmat.bindings.commoncrypto.binding import Binding
-@pytest.mark.skipif(not Binding.is_available(),
+@pytest.mark.skipif("commoncrypto" not in
+ [i.name for i in _available_backends()],
reason="CommonCrypto not available")
class TestCommonCrypto(object):
def test_binding_loads(self):