From dc096c9b23885a254fcde83fe38efde65b339b40 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 23 Jan 2021 14:21:45 -0500 Subject: [PATCH] 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 --- test/base/test_concurrency_py3k.py | 4 ++++ 1 file changed, 4 insertions(+) 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] -- 2.47.3