summaryrefslogtreecommitdiff
path: root/test/dialect/mysql/test_for_update.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-11-07 21:19:45 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-11-07 21:19:45 +0000
commit201c00bc0837af831f115e8313ad3ccb0be97e7a (patch)
treebeb7558e95d073b63fa4bb76d830ccaa2de9711a /test/dialect/mysql/test_for_update.py
parent5b1c9053b0903b2d5a06f82b47fe16a870696ddc (diff)
parentd050193daaa8d91371c759296f3304b8641c1976 (diff)
downloadsqlalchemy-201c00bc0837af831f115e8313ad3ccb0be97e7a.tar.gz
Merge "fully implement future engine and remove legacy" into main
Diffstat (limited to 'test/dialect/mysql/test_for_update.py')
-rw-r--r--test/dialect/mysql/test_for_update.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/dialect/mysql/test_for_update.py b/test/dialect/mysql/test_for_update.py
index a99435c4a..5717a3299 100644
--- a/test/dialect/mysql/test_for_update.py
+++ b/test/dialect/mysql/test_for_update.py
@@ -76,11 +76,10 @@ class MySQLForUpdateLockingTest(fixtures.DeclarativeMappedTest):
def run_test(self):
connection = testing.db.connect()
connection.exec_driver_sql("set innodb_lock_wait_timeout=1")
- main_trans = connection.begin()
try:
yield Session(bind=connection)
finally:
- main_trans.rollback()
+ connection.rollback()
connection.close()
def _assert_a_is_locked(self, should_be_locked):