From 788ba204a43b37d28cc690138b83e6782f8a46da Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 13 Aug 2020 23:05:57 -0400 Subject: [PATCH] Dont run py3k-only test files on Python 3.5 these are failing on the github runners because 3.5 doesnt have the async keywords. Change-Id: I9c58d38f8d7595313b7648b9840b334da8238bd0 --- doc/build/orm/extensions/asyncio.rst | 2 ++ test/conftest.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/build/orm/extensions/asyncio.rst b/doc/build/orm/extensions/asyncio.rst index f3012e5bcb..2afda1c102 100644 --- a/doc/build/orm/extensions/asyncio.rst +++ b/doc/build/orm/extensions/asyncio.rst @@ -8,6 +8,8 @@ included, using asyncio-compatible dialects. .. versionadded:: 1.4 +The asyncio extension requires at least Python version 3.6. + .. note:: The asyncio should be regarded as **alpha level** for the 1.4 release of SQLAlchemy. API details are **subject to change** at diff --git a/test/conftest.py b/test/conftest.py index 92d3e07768..63f3989ebc 100755 --- a/test/conftest.py +++ b/test/conftest.py @@ -13,7 +13,10 @@ import pytest collect_ignore_glob = [] -if sys.version_info[0] < 3: + +# minimum version for a py3k only test is at +# 3.6 because these are asyncio tests anyway +if sys.version_info[0:2] < (3, 6): collect_ignore_glob.append("*_py3k.py") pytest.register_assert_rewrite("sqlalchemy.testing.assertions") -- 2.47.3