summaryrefslogtreecommitdiff
path: root/test/ext/asyncio/test_scoping_py3k.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-09-29 22:34:28 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-09-29 22:34:28 +0200
commit91c23f261c9162bcd0f27575dd45ce39487a3559 (patch)
tree2e1e9390f73bb7c90d5bcd3479aed138f38d1713 /test/ext/asyncio/test_scoping_py3k.py
parent8fa9392360c144ba8391add65cfb8dc4a1067d51 (diff)
downloadsqlalchemy-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.py5
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()