diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-04 16:26:44 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-10 17:11:46 -0500 |
commit | 5f333762db4b72c604e44f20f86d171dc249b741 (patch) | |
tree | 9d70447db467bce735a1aaeadae89d290c60dffe /test/ext/asyncio/test_session_py3k.py | |
parent | c736eef8b35841af89ec19469aa496585efd3865 (diff) | |
download | sqlalchemy-5f333762db4b72c604e44f20f86d171dc249b741.tar.gz |
add aiomysql support
This is a re-gerrit of the original gerrit
merged in Ia8ad3efe3b50ce75a3bed1e020e1b82acb5f2eda
Reverted due to ongoing issues.
Fixes: #5747
Change-Id: I2b57e76b817eed8f89457a2146b523a1cab656a8
Diffstat (limited to 'test/ext/asyncio/test_session_py3k.py')
-rw-r--r-- | test/ext/asyncio/test_session_py3k.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ext/asyncio/test_session_py3k.py b/test/ext/asyncio/test_session_py3k.py index a3b8add67..44e295542 100644 --- a/test/ext/asyncio/test_session_py3k.py +++ b/test/ext/asyncio/test_session_py3k.py @@ -55,6 +55,7 @@ class AsyncSessionQueryTest(AsyncFixture): eq_(result.scalars().all(), self.static.user_address_result) @async_test + @testing.requires.independent_cursors async def test_stream_partitions(self, async_session): User = self.classes.User @@ -99,6 +100,7 @@ class AsyncSessionTransactionTest(AsyncFixture): result = await async_session.execute(select(User)) eq_(result.scalar(), u1) + await outer_conn.rollback() eq_(await outer_conn.scalar(select(func.count(User.id))), 1) @async_test @@ -118,6 +120,7 @@ class AsyncSessionTransactionTest(AsyncFixture): await async_session.commit() + await outer_conn.rollback() eq_(await outer_conn.scalar(select(func.count(User.id))), 1) @async_test @@ -139,6 +142,7 @@ class AsyncSessionTransactionTest(AsyncFixture): finally: await trans.commit() + await outer_conn.rollback() eq_(await outer_conn.scalar(select(func.count(User.id))), 1) @async_test |