summaryrefslogtreecommitdiff
path: root/nova/tests/fixtures/nova.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/fixtures/nova.py')
-rw-r--r--nova/tests/fixtures/nova.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/tests/fixtures/nova.py b/nova/tests/fixtures/nova.py
index f8f4cc89f9..5bca8f115a 100644
--- a/nova/tests/fixtures/nova.py
+++ b/nova/tests/fixtures/nova.py
@@ -833,6 +833,16 @@ class WarningsFixture(fixtures.Fixture):
self.addCleanup(warnings.resetwarnings)
+ # Enable general SQLAlchemy warnings also to ensure we're not doing
+ # silly stuff. It's possible that we'll need to filter things out here
+ # with future SQLAlchemy versions, but that's a good thing
+
+ warnings.filterwarnings(
+ 'error',
+ module='nova',
+ category=sqla_exc.SAWarning,
+ )
+
class ConfPatcher(fixtures.Fixture):
"""Fixture to patch and restore global CONF.