Change sqlalchemy warnings filter to an error

The warning should be gone with change
I192e84ce757d12d33085a209dd58d8ea46fb90fb in
oslo.db 4.44.0 so this changes the warnings
filter from ignore to error and bumps the minimum
required version of oslo.db to include that change.

Change-Id: If7b1a9613b58476fab8409211512613a8863cdde
Related-Bug: #1813147
Related-Bug: #1814199
This commit is contained in:
Matt Riedemann 2019-02-14 08:47:53 -05:00
parent ee57c92e8b
commit 0840bcccc0
3 changed files with 3 additions and 5 deletions

View File

@ -78,7 +78,7 @@ oslo.cache==1.26.0
oslo.concurrency==3.26.0
oslo.config==6.1.0
oslo.context==2.19.2
oslo.db==4.40.0
oslo.db==4.44.0
oslo.i18n==3.15.3
oslo.log==3.36.0
oslo.messaging==6.3.0

View File

@ -837,10 +837,8 @@ class WarningsFixture(fixtures.Fixture):
"._Default object at ",
category=UserWarning)
# TODO(mriedem): Change (or remove) this SAWarning to an error once
# https://bugs.launchpad.net/oslo.db/+bug/1814199 is fixed.
warnings.filterwarnings(
'ignore', message='Evaluating non-mapped column expression',
'error', message='Evaluating non-mapped column expression',
category=sqla_exc.SAWarning)
# TODO(jangutter): Change (or remove) this to an error during the Train

View File

@ -44,7 +44,7 @@ oslo.reports>=1.18.0 # Apache-2.0
oslo.serialization!=2.19.1,>=2.21.1 # Apache-2.0
oslo.upgradecheck>=0.1.1
oslo.utils>=3.37.0 # Apache-2.0
oslo.db>=4.40.0 # Apache-2.0
oslo.db>=4.44.0 # Apache-2.0
oslo.rootwrap>=5.8.0 # Apache-2.0
oslo.messaging>=6.3.0 # Apache-2.0
oslo.policy>=1.35.0 # Apache-2.0