Commit 4c451b7d authored by Stephen Finucane's avatar Stephen Finucane
Browse files

trivial: Don't emit warnings for our own deprecations



We've deprecated a number of modules recently. We don't need to emit
these warnings when running unit tests. Silence things.

Change-Id: I7aed7789584bf0070f11c22b5eaa0e80c42dfc9c
Signed-off-by: default avatarStephen Finucane <stephenfin@redhat.com>
parent 2c7c0cab
......@@ -26,6 +26,13 @@ class WarningsFixture(fixtures.Fixture):
warnings.simplefilter('once', DeprecationWarning)
# Except things we've deprecated but are still testing until removal
warnings.filterwarnings(
'ignore',
category=DeprecationWarning,
module='oslo_db')
# Enable generic warnings to ensure we're not doing anything odd
warnings.filterwarnings(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment