]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Limit AsyncAdaptedQueue to Python 3.7
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2021 19:21:45 +0000 (14:21 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2021 19:21:45 +0000 (14:21 -0500)
Tests here are failing for python 3.6 due to the lack
of asyncio.run().   It seems to be non-trivial to vendor
a working version of this in Python 3.6 as the tests here
are running it in alternate threads.

Change-Id: I9398c9fb2aa87f3228ce2f59277de732091bd541

test/base/test_concurrency_py3k.py

index 1492bc1868350e66ea3edcbf2f690c1e450aad38..08c18b43e3daedf0cdba58eb2c0719c5b34cbbbd 100644 (file)
@@ -161,6 +161,10 @@ class TestAsyncioCompat(fixtures.TestBase):
 
 
 class TestAsyncAdaptedQueue(fixtures.TestBase):
+    # uses asyncio.run() in alternate threads which is not available
+    # in Python 3.6
+    __requires__ = ("python37",)
+
     def test_lazy_init(self):
         run = [False]