summaryrefslogtreecommitdiffstats
path: root/tests/unit/rpc/test_kombu_ssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/rpc/test_kombu_ssl.py')
-rw-r--r--tests/unit/rpc/test_kombu_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/rpc/test_kombu_ssl.py b/tests/unit/rpc/test_kombu_ssl.py
index 6d9265b..5507f91 100644
--- a/tests/unit/rpc/test_kombu_ssl.py
+++ b/tests/unit/rpc/test_kombu_ssl.py
@@ -23,7 +23,6 @@ import eventlet
eventlet.monkey_patch()
from openstack.common import cfg
-from openstack.common import testutils
from tests import utils as test_utils
@@ -48,6 +47,8 @@ class RpcKombuSslTestCase(test_utils.BaseTestCase):
def setUp(self):
super(RpcKombuSslTestCase, self).setUp()
+ if kombu is None:
+ self.skipTest("Test requires kombu")
self.config(kombu_ssl_keyfile=SSL_KEYFILE,
kombu_ssl_ca_certs=SSL_CA_CERT,
kombu_ssl_certfile=SSL_CERT,
@@ -55,7 +56,6 @@ class RpcKombuSslTestCase(test_utils.BaseTestCase):
rabbit_use_ssl=True,
fake_rabbit=True)
- @testutils.skip_if(kombu is None, "Test requires kombu")
def test_ssl_on_extended(self):
rpc = impl_kombu
conn = rpc.create_connection(FLAGS, True)