]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Dont run py3k-only test files on Python 3.5
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Aug 2020 03:05:57 +0000 (23:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Aug 2020 03:05:57 +0000 (23:05 -0400)
these are failing on the github runners because 3.5 doesnt
have the async keywords.

Change-Id: I9c58d38f8d7595313b7648b9840b334da8238bd0

doc/build/orm/extensions/asyncio.rst
test/conftest.py

index f3012e5bcbafc83d20ad029bf084b8768e2787fc..2afda1c10268b9abedfd84d7a30bb80c26df0d11 100644 (file)
@@ -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
index 92d3e07768572a1d15233dfc28ca28bda534c7c4..63f3989ebc1a41ba76ecba9de54ebba9f48a912b 100755 (executable)
@@ -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")