From: Federico Caselli Date: Wed, 29 Sep 2021 20:34:28 +0000 (+0200) Subject: fix python 3.6 tests X-Git-Tag: rel_1_4_26~54^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91c23f261c9162bcd0f27575dd45ce39487a3559;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix python 3.6 tests Change-Id: Ie9184fd4dc8fb68dd218c82b7f6a93332aa3d24a --- 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()