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.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py
index 0168116..521639c 100644
--- a/oslo_db/tests/fixtures.py
+++ b/oslo_db/tests/fixtures.py
@@ -49,11 +49,6 @@ class WarningsFixture(fixtures.Fixture):
warnings.filterwarnings(
'once',
- message=r'The Engine.execute\(\) method is considered legacy .*',
- category=sqla_exc.SADeprecationWarning)
-
- warnings.filterwarnings(
- 'once',
message=r'The current statement is being autocommitted .*',
category=sqla_exc.SADeprecationWarning)
@@ -73,4 +68,10 @@ class WarningsFixture(fixtures.Fixture):
module='migrate',
category=sqla_exc.SADeprecationWarning)
+ warnings.filterwarnings(
+ 'ignore',
+ message=r'The Engine.execute\(\) method is considered legacy .*',
+ module='migrate',
+ category=sqla_exc.SADeprecationWarning)
+
self.addCleanup(warnings.resetwarnings)