summaryrefslogtreecommitdiff
path: root/test/ext
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-12-11 15:33:22 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-12-14 09:38:28 -0500
commit628db9581c5bd43c01cbfcc16753477f206de431 (patch)
tree709fc36121fe5c41faa73f5813ddcc8daca22d04 /test/ext
parent8e9e473dcb76b57a7f0eaa476481cb66a258ea69 (diff)
downloadsqlalchemy-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/ext')
-rw-r--r--test/ext/asyncio/test_engine_py3k.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/ext/asyncio/test_engine_py3k.py b/test/ext/asyncio/test_engine_py3k.py
index 6df8a0e00..cd1e16ed9 100644
--- a/test/ext/asyncio/test_engine_py3k.py
+++ b/test/ext/asyncio/test_engine_py3k.py
@@ -46,14 +46,10 @@ class EngineFixture(fixtures.TablesTest):
@classmethod
def insert_data(cls, connection):
users = cls.tables.users
- with connection.begin():
- connection.execute(
- users.insert(),
- [
- {"user_id": i, "user_name": "name%d" % i}
- for i in range(1, 20)
- ],
- )
+ connection.execute(
+ users.insert(),
+ [{"user_id": i, "user_name": "name%d" % i} for i in range(1, 20)],
+ )
class AsyncEngineTest(EngineFixture):