diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-09-29 22:34:28 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-09-29 22:34:28 +0200 |
commit | 91c23f261c9162bcd0f27575dd45ce39487a3559 (patch) | |
tree | 2e1e9390f73bb7c90d5bcd3479aed138f38d1713 /test/ext/asyncio/test_scoping_py3k.py | |
parent | 8fa9392360c144ba8391add65cfb8dc4a1067d51 (diff) | |
download | sqlalchemy-91c23f261c9162bcd0f27575dd45ce39487a3559.tar.gz |
fix python 3.6 tests
Change-Id: Ie9184fd4dc8fb68dd218c82b7f6a93332aa3d24a
Diffstat (limited to 'test/ext/asyncio/test_scoping_py3k.py')
-rw-r--r-- | test/ext/asyncio/test_scoping_py3k.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ext/asyncio/test_scoping_py3k.py b/test/ext/asyncio/test_scoping_py3k.py index 7eeff566c..065dc7442 100644 --- a/test/ext/asyncio/test_scoping_py3k.py +++ b/test/ext/asyncio/test_scoping_py3k.py @@ -1,5 +1,3 @@ -from asyncio import current_task - import sqlalchemy as sa from sqlalchemy import func from sqlalchemy import select @@ -48,7 +46,10 @@ class AsyncScopedSessionTest(AsyncFixture): await AsyncSession.flush() eq_(await conn.scalar(stmt), 0) + @testing.requires.python37 def test_attributes(self, async_engine): + from asyncio import current_task + expected = [ name for cls in _AsyncSession.mro() |