Ignore MoxStubout deprecation warnings

Like how we ignore mox3 usage warnings, we can ignore
MoxStubout deprecation warnings as well.

In a py35 unit test run, these warnings show up over
1000 times (probably closer to 17K+ based on the number
of unit tests we run) and bloat the console logs.

Change-Id: I598999303c8e91f448e48dea1049a24332ba2f53
Closes-Bug: #1778784
(cherry picked from commit 2f693360b4)
This commit is contained in:
Matt Riedemann 2018-12-06 15:35:58 -05:00
parent c15e288d32
commit bbc431f32b
1 changed files with 2 additions and 0 deletions

View File

@ -765,6 +765,8 @@ class WarningsFixture(fixtures.Fixture):
# about any deprecations coming from it
warnings.filterwarnings('ignore',
module='mox3.mox')
# NOTE(gibi): we can remove this once we get rid of Mox in nova
warnings.filterwarnings('ignore', message="Using class 'MoxStubout'")
# NOTE(mriedem): Ignore scope check UserWarnings from oslo.policy.
warnings.filterwarnings('ignore',
message="Policy .* failed scope check",