diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-11 15:33:22 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-14 09:38:28 -0500 |
commit | 628db9581c5bd43c01cbfcc16753477f206de431 (patch) | |
tree | 709fc36121fe5c41faa73f5813ddcc8daca22d04 /test/dialect/test_sqlite.py | |
parent | 8e9e473dcb76b57a7f0eaa476481cb66a258ea69 (diff) | |
download | sqlalchemy-628db9581c5bd43c01cbfcc16753477f206de431.tar.gz |
Emit 2.0 deprecation warning for sub-transactions
The nesting pattern will be removed in 2.0, so the use of the
MarkerTransaction should emit a 2.0 deprecation warning
unconditionally.
Change-Id: I96aed22c4e5db9b59e9b28a7f2d1283cd99a9cb6
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r-- | test/dialect/test_sqlite.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py index 12200f832..16969467e 100644 --- a/test/dialect/test_sqlite.py +++ b/test/dialect/test_sqlite.py @@ -2459,28 +2459,6 @@ class SavepointTest(fixtures.TablesTest): ) connection.close() - def test_rollback_to_subtransaction(self): - users = self.tables.users - connection = self.bind.connect() - transaction = connection.begin() - connection.execute(users.insert(), user_id=1, user_name="user1") - trans2 = connection.begin_nested() - connection.execute(users.insert(), user_id=2, user_name="user2") - trans3 = connection.begin() - connection.execute(users.insert(), user_id=3, user_name="user3") - trans3.rollback() - - trans2.rollback() - connection.execute(users.insert(), user_id=4, user_name="user4") - transaction.commit() - eq_( - connection.execute( - select(users.c.user_id).order_by(users.c.user_id) - ).fetchall(), - [(1,), (4,)], - ) - connection.close() - class TypeReflectionTest(fixtures.TestBase): |