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: origin~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed197d4c303603f74122cbcab5c9f4ea12ff5cd7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - dont run sql mode config tests if we aren't on mysql Change-Id: Ia5a491ec505afed1511a17a167cd1f7d8371acd4 --- diff --git a/test/requirements.py b/test/requirements.py index 737d654ae3..1a8af2aed2 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -927,6 +927,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] @@ -935,6 +938,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]