From 4c451b7df55f3f77af7339ed38b49bdb5747e52e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 16 Aug 2021 16:19:23 +0100 Subject: 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 --- oslo_db/tests/fixtures.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'oslo_db') 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( -- cgit v1.2.1