From 91c23f261c9162bcd0f27575dd45ce39487a3559 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 29 Sep 2021 22:34:28 +0200 Subject: [PATCH] fix python 3.6 tests Change-Id: Ie9184fd4dc8fb68dd218c82b7f6a93332aa3d24a --- test/ext/asyncio/test_scoping_py3k.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/ext/asyncio/test_scoping_py3k.py b/test/ext/asyncio/test_scoping_py3k.py index 7eeff566c3..065dc7442c 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() -- 2.47.3