]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix python 3.6 tests
authorFederico Caselli <cfederico87@gmail.com>
Wed, 29 Sep 2021 20:34:28 +0000 (22:34 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 29 Sep 2021 20:34:28 +0000 (22:34 +0200)
Change-Id: Ie9184fd4dc8fb68dd218c82b7f6a93332aa3d24a

test/ext/asyncio/test_scoping_py3k.py

index 7eeff566c3700dd8c9b383121b49ccf5b16bb298..065dc7442c81e8615cdc9b469d63662a88f665a2 100644 (file)
@@ -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()