summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2021-08-16 16:19:23 +0100
committerStephen Finucane <stephenfin@redhat.com>2022-02-08 14:46:42 +0000
commit4c451b7df55f3f77af7339ed38b49bdb5747e52e (patch)
tree3488a03e482f1e0bb9ed6c5d68bad221dd0f2986
parent2c7c0cab06adcfd5e510985dc1af302a47ae9899 (diff)
downloadoslo-db-4c451b7df55f3f77af7339ed38b49bdb5747e52e.tar.gz
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: Stephen Finucane <stephenfin@redhat.com>
-rw-r--r--oslo_db/tests/fixtures.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py
index 4cc596f..62a88fb 100644
--- a/oslo_db/tests/fixtures.py
+++ b/oslo_db/tests/fixtures.py
@@ -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(