Merge "Ignore SQLAlchemy RemovedIn20Warning"
This commit is contained in:
commit
8533b7dbd7
@ -684,6 +684,9 @@ class BaseTestCase(testtools.TestCase):
|
||||
warnings.filterwarnings('error', category=DeprecationWarning,
|
||||
module='^keystone\\.')
|
||||
warnings.simplefilter('error', exc.SAWarning)
|
||||
if hasattr(exc, "RemovedIn20Warning"):
|
||||
warnings.simplefilter('ignore', exc.RemovedIn20Warning)
|
||||
|
||||
self.addCleanup(warnings.resetwarnings)
|
||||
# Ensure we have an empty threadlocal context at the start of each
|
||||
# test.
|
||||
|
Loading…
Reference in New Issue
Block a user