diff options
Diffstat (limited to 'test/dialect/mysql/test_for_update.py')
-rw-r--r-- | test/dialect/mysql/test_for_update.py | 3 |
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): |