diff options
Diffstat (limited to 'oslo_db/tests/fixtures.py')
-rw-r--r-- | oslo_db/tests/fixtures.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 521639c..502719b 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 current statement is being autocommitted .*', - category=sqla_exc.SADeprecationWarning) - - warnings.filterwarnings( - 'once', message=r'Calling \.begin\(\) when a transaction is already .*', category=sqla_exc.SADeprecationWarning) @@ -69,6 +64,12 @@ class WarningsFixture(fixtures.Fixture): category=sqla_exc.SADeprecationWarning) warnings.filterwarnings( + 'once', + message=r'The current statement is being autocommitted .*', + module='migrate', + category=sqla_exc.SADeprecationWarning) + + warnings.filterwarnings( 'ignore', message=r'The Engine.execute\(\) method is considered legacy .*', module='migrate', |