summaryrefslogtreecommitdiff
path: root/oslo_db/tests/fixtures.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/tests/fixtures.py')
-rw-r--r--oslo_db/tests/fixtures.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py
index 00fdb98..5f1b299 100644
--- a/oslo_db/tests/fixtures.py
+++ b/oslo_db/tests/fixtures.py
@@ -104,11 +104,6 @@ class WarningsFixture(fixtures.Fixture):
warnings.filterwarnings(
'once',
- message=r'Passing a string to Connection.execute\(\) .*',
- category=sqla_exc.SADeprecationWarning)
-
- warnings.filterwarnings(
- 'once',
message=r'Using plain strings to indicate SQL statements .*',
category=sqla_exc.SADeprecationWarning)
@@ -137,4 +132,15 @@ class WarningsFixture(fixtures.Fixture):
message=r'The ``declarative_base\(\)`` function is now .*',
category=sqla_exc.SADeprecationWarning)
+ # ...plus things that aren't our fault
+
+ # FIXME(stephenfin): These are caused by sqlalchemy-migrate, not us,
+ # and should be removed when we drop support for that library
+
+ warnings.filterwarnings(
+ 'ignore',
+ message=r'Passing a string to Connection.execute\(\) .*',
+ module='migrate',
+ category=sqla_exc.SADeprecationWarning)
+
self.addCleanup(warnings.resetwarnings)