Merge "Ignore oslo.db deprecating sqlalchemy-migrate warning"

This commit is contained in:
Zuul 2021-02-05 05:43:03 +00:00 committed by Gerrit Code Review
commit e462aba36e
1 changed files with 3 additions and 0 deletions

View File

@ -681,6 +681,9 @@ class BaseTestCase(testtools.TestCase):
warnings.filterwarnings('error', category=DeprecationWarning,
module='^keystone\\.')
warnings.filterwarnings(
'ignore', category=DeprecationWarning,
message=r"Using function/method 'db_version\(\)' is deprecated")
warnings.simplefilter('error', exc.SAWarning)
if hasattr(exc, "RemovedIn20Warning"):
warnings.simplefilter('ignore', exc.RemovedIn20Warning)