From: Mike Bayer Date: Sat, 19 Aug 2017 22:22:41 +0000 (-0400) Subject: - dont run sql mode config tests if we aren't on mysql X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=983640834a74fe598e8b629dc31b3ed61db510ab;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - dont run sql mode config tests if we aren't on mysql Change-Id: Iec1d992c611e223fda303e6a323dabff79760f01 --- diff --git a/test/requirements.py b/test/requirements.py index 520d7c01a8..d69692ffad 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -870,14 +870,18 @@ class DefaultRequirements(SuiteRequirements): @property def mysql_zero_date(self): def check(config): - row = config.db.execute("show variables like 'sql_mode'").first() - return not row or "NO_ZERO_DATE" not in row[1] + 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] return only_if(check) @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" not in row[1]