Merge "Suppress some test warnings"

This commit is contained in:
Jenkins 2017-07-26 22:36:46 +00:00 committed by Gerrit Code Review
commit 8636e96c27

@ -718,6 +718,21 @@ class WarningsFixture(fixtures.Fixture):
warnings.filterwarnings('ignore',
message='With-statements now directly support'
' multiple context managers')
# NOTE(sdague): nova does not use pkg_resources directly, this
# is all very long standing deprecations about other tools
# using it. None of this is useful to Nova development.
warnings.filterwarnings('ignore',
module='pkg_resources')
# NOTE(sdague): this remains an unresolved item around the way
# forward on is_admin, the deprecation is definitely really premature.
warnings.filterwarnings('ignore',
message='Policy enforcement is depending on the value of is_admin.'
' This key is deprecated. Please update your policy '
'file to use the standard policy values.')
# NOTE(sdague): mox3 is on life support, don't really care
# about any deprecations coming from it
warnings.filterwarnings('ignore',
module='mox3.mox')
self.addCleanup(warnings.resetwarnings)