summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/sqlalchemy')
-rw-r--r--oslo_db/sqlalchemy/test_base.py4
-rw-r--r--oslo_db/sqlalchemy/test_fixtures.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/oslo_db/sqlalchemy/test_base.py b/oslo_db/sqlalchemy/test_base.py
index 4c9c2c7..14e9d02 100644
--- a/oslo_db/sqlalchemy/test_base.py
+++ b/oslo_db/sqlalchemy/test_base.py
@@ -70,7 +70,7 @@ class DbFixture(fixtures.Fixture):
if not self.test._has_db_resource():
msg = self.test._get_db_resource_not_available_reason()
if self.test.SKIP_ON_UNAVAILABLE_DB:
- self.test.skip(msg)
+ self.test.skipTest(msg)
else:
self.test.fail(msg)
@@ -216,7 +216,7 @@ def backend_specific(*dialects):
'only on %s. Current engine is %s.')
args = (reflection.get_callable_name(f), ', '.join(dialects),
self.engine.name)
- self.skip(msg % args)
+ self.skipTest(msg % args)
else:
return f(self)
return ins_wrap
diff --git a/oslo_db/sqlalchemy/test_fixtures.py b/oslo_db/sqlalchemy/test_fixtures.py
index 57980ff..f3b5c1c 100644
--- a/oslo_db/sqlalchemy/test_fixtures.py
+++ b/oslo_db/sqlalchemy/test_fixtures.py
@@ -533,7 +533,7 @@ class OpportunisticDBTestMixin(object):
if not fixture._has_db_resource():
msg = fixture._get_db_resource_not_available_reason()
if self.SKIP_ON_UNAVAILABLE_DB:
- self.skip(msg)
+ self.skipTest(msg)
else:
self.fail(msg)