diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-07-16 15:41:05 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-08-10 17:43:22 +0100 |
commit | cd5f697a173a64df0cdb1a90ab871b81f56469d4 (patch) | |
tree | 246d38c5173ff0a55e58135d13addb79b2c0791c /oslo_db/tests | |
parent | b3a56b35640b0cfceeeb97c885318a3aae7f7b22 (diff) | |
download | oslo-db-cd5f697a173a64df0cdb1a90ab871b81f56469d4.tar.gz |
Remove use of Session.begin.subtransactions flag
Resolve the following RemovedIn20Warning warning:
The Session.begin.subtransactions flag is deprecated and will be
removed in SQLAlchemy version 2.0. See the documentation at
session_subtransactions for background on a compatible alternative
pattern.
Change-Id: Ib2537bae77861ee60d17a48a72c57b88e043553e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'oslo_db/tests')
-rw-r--r-- | oslo_db/tests/fixtures.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 502719b..35b1a87 100644 --- a/oslo_db/tests/fixtures.py +++ b/oslo_db/tests/fixtures.py @@ -44,11 +44,6 @@ class WarningsFixture(fixtures.Fixture): warnings.filterwarnings( 'once', - message=r'The Session.begin.subtransactions flag is deprecated .*', - category=sqla_exc.SADeprecationWarning) - - warnings.filterwarnings( - 'once', message=r'Calling \.begin\(\) when a transaction is already .*', category=sqla_exc.SADeprecationWarning) |