From: Mike Bayer Date: Sat, 19 Aug 2017 22:20:48 +0000 (-0400) Subject: - dont run sql mode config tests if we aren't on mysql X-Git-Tag: rel_1_1_14~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f468af190e51e848f8a9aee162ff8c277b36f7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - dont run sql mode config tests if we aren't on mysql Change-Id: Ia5a491ec505afed1511a17a167cd1f7d8371acd4 (cherry picked from commit ed197d4c303603f74122cbcab5c9f4ea12ff5cd7) --- diff --git a/test/requirements.py b/test/requirements.py index fc9a50381f..365df47a61 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -899,6 +899,9 @@ class DefaultRequirements(SuiteRequirements): @property def mysql_zero_date(self): def check(config): + if not against(config, 'mysql'): + return False + row = config.db.execute("show variables like 'sql_mode'").first() return not row or "NO_ZERO_DATE" not in row[1] @@ -907,6 +910,9 @@ class DefaultRequirements(SuiteRequirements): @property def mysql_non_strict(self): def check(config): + if not against(config, 'mysql'): + return False + row = config.db.execute("show variables like 'sql_mode'").first() return not row or "STRICT_TRANS_TABLES" not in row[1]