diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-30 20:35:32 -0400 |
---|---|---|
committer | Kristi Nikolla <kristi@nikolla.me> | 2021-01-26 12:33:56 -0500 |
commit | 11cfc38df1d3f24e8f1b19f58372f6b8386270d9 (patch) | |
tree | e3a12711fe42fc1151ba56df64e6baf0597a0135 | |
parent | b0b93c03986f3bb40c5a2ec31ee37c83014e197a (diff) | |
download | keystone-11cfc38df1d3f24e8f1b19f58372f6b8386270d9.tar.gz |
Ignore oslo.db deprecating sqlalchemy-migrate warning
In I59335b4f318bae2e29ab139cdea089a4d6e14305, oslo.db
is now emitting deprecation warnings for SQLAlchemy-migrate
functions. This breaks Keystone tests which raise on
DeprecationWarning, so add to the filters.
Change-Id: I42f0abc2ddf8c53239d5098d5f32b667314b942d
-rw-r--r-- | keystone/tests/unit/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/keystone/tests/unit/core.py b/keystone/tests/unit/core.py index 3c65bfbe6..918a87253 100644 --- a/keystone/tests/unit/core.py +++ b/keystone/tests/unit/core.py @@ -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) |