Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.db
Commits
a10eee97
Commit
a10eee97
authored
Apr 15, 2022
by
Zuul
Committed by
Gerrit Code Review
Apr 15, 2022
Browse files
Merge "Don't call 'begin()' on existing transaction"
parents
95e1dd6e
6ecce899
Changes
2
Hide whitespace changes
Inline
Side-by-side
oslo_db/tests/fixtures.py
View file @
a10eee97
...
...
@@ -45,11 +45,6 @@ class WarningsFixture(fixtures.Fixture):
message
=
r
'The Session.autocommit parameter is deprecated .*'
,
category
=
sqla_exc
.
SADeprecationWarning
)
warnings
.
filterwarnings
(
'once'
,
message
=
r
'Calling \.begin\(\) when a transaction is already .*'
,
category
=
sqla_exc
.
SADeprecationWarning
)
# ...plus things that aren't our fault
# FIXME(stephenfin): These are caused by sqlalchemy-migrate, not us,
...
...
oslo_db/tests/sqlalchemy/test_utils.py
View file @
a10eee97
...
...
@@ -700,8 +700,7 @@ class TestMigrationUtils(db_test_base._DbTestCase):
test_table
.
create
(
engine
)
with
engine
.
connect
()
as
conn
,
conn
.
begin
():
with
conn
.
begin
():
conn
.
execute
(
test_table
.
insert
(),
values
)
conn
.
execute
(
test_table
.
insert
(),
values
)
return
test_table
,
values
def
test_drop_old_duplicate_entries_from_table
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment