diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-08-11 18:38:08 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-08-11 18:38:08 +0000 |
commit | e2adc4384ab4a9ae172bdca9cfbaa5ab0ed08c68 (patch) | |
tree | 0b4144c384c03efa75972c2acab63ce91e85dc08 /tests | |
parent | deeda384471b860884ab126a1eb1a699d791b7ba (diff) | |
parent | 6065b21b15b1b772cea281a99704c3c8d92c61cb (diff) | |
download | oslo-db-e2adc4384ab4a9ae172bdca9cfbaa5ab0ed08c68.tar.gz |
Merge "Move to oslo.utils"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 98c618f..2168cd5 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -17,13 +17,15 @@ import mock from oslo.config import cfg +from oslo.utils import importutils from oslo.db import api from oslo.db import exception -from oslo.db.openstack.common import importutils from tests import utils as test_utils -sqla = importutils.import_module('sqlalchemy') +sqla = importutils.try_import('sqlalchemy') +if not sqla: + raise ImportError("Unable to import module 'sqlalchemy'.") def get_backend(): |