summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-07-12 22:55:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-07-12 22:55:01 -0400
commitcfe0bfd911fc318c47f52bf8ac3ddb972c5ed86a (patch)
tree3ed23a1679b10291838a61a2a89db89da8780015
parent3cad4e0371c99b79fbf5ce4955cdd6489325fd61 (diff)
downloadsqlalchemy-cfe0bfd911fc318c47f52bf8ac3ddb972c5ed86a.tar.gz
Correct fastexecutemany test for lower pyodbc version
some builds on CI have a pyodbc that is < 4.0.19, make the check more specific Change-Id: I69b33c2367d4a03adb00bcf52fb6d1483b0327f8
-rw-r--r--test/requirements.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/requirements.py b/test/requirements.py
index 147b708c8..1d11cea47 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -1083,13 +1083,17 @@ class DefaultRequirements(SuiteRequirements):
def has_fastexecutemany(config):
if not against(config, "mssql+pyodbc"):
return False
+ if config.db.dialect._dbapi_version() < (4, 0, 19):
+ return False
with config.db.connect() as conn:
drivername = conn.connection.connection.getinfo(
config.db.dialect.dbapi.SQL_DRIVER_NAME)
# on linux this is 'libmsodbcsql-13.1.so.9.2'.
# don't know what it is on windows
return "msodbc" in drivername
- return only_if(has_fastexecutemany)
+ return only_if(
+ has_fastexecutemany,
+ "only on pyodbc > 4.0.19 w/ msodbc driver")
@property
def python_fixed_issue_8743(self):