From: Mike Bayer Date: Sat, 23 Jan 2021 19:21:45 +0000 (-0500) Subject: Limit AsyncAdaptedQueue to Python 3.7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc096c9b23885a254fcde83fe38efde65b339b40;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Limit AsyncAdaptedQueue to Python 3.7 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 --- diff --git a/test/base/test_concurrency_py3k.py b/test/base/test_concurrency_py3k.py index 1492bc1868..08c18b43e3 100644 --- a/test/base/test_concurrency_py3k.py +++ b/test/base/test_concurrency_py3k.py @@ -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]