From: Mike Bayer Date: Sun, 16 Feb 2020 17:01:17 +0000 (-0500) Subject: Update test reqs for mariadb 10.4, 10.5 X-Git-Tag: rel_1_3_14~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2b41fc90137045cc6b7177828df50dfa1af266;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Update test reqs for mariadb 10.4, 10.5 A few except / union tests seem to be passing on these two versions which are now up on CI. Change-Id: I0d65795357a6d03962d7182dda198d890a4c3f97 (cherry picked from commit 2f27dd35020be46b35717cffdccaefc97b5f67dd) --- diff --git a/test/requirements.py b/test/requirements.py index a8f7828c25..01382c8c12 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -1441,6 +1441,12 @@ class DefaultRequirements(SuiteRequirements): or config.db.dialect._mariadb_normalized_version_info < (10, 3) ) + def _mysql_not_mariadb_104(self, config): + return against(config, "mysql") and ( + not config.db.dialect._is_mariadb + or config.db.dialect._mariadb_normalized_version_info < (10, 4) + ) + def _has_mysql_on_windows(self, config): return ( against(config, "mysql") diff --git a/test/sql/test_query.py b/test/sql/test_query.py index 70cc2393fb..527d550665 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -1244,7 +1244,9 @@ class CompoundTest(fixtures.TestBase): "firebird", "has trouble extracting anonymous column from union subquery", ) - @testing.fails_on("mysql", "FIXME: unknown") + @testing.fails_on( + testing.requires._mysql_not_mariadb_104, "FIXME: unknown" + ) @testing.fails_on("sqlite", "FIXME: unknown") def test_union_all(self): e = union_all( @@ -1348,7 +1350,8 @@ class CompoundTest(fixtures.TestBase): eq_(found2, wanted) @testing.fails_on( - ["sqlite", "mysql"], "Can't handle this style of nesting" + ["sqlite", testing.requires._mysql_not_mariadb_104], + "Can't handle this style of nesting", ) @testing.requires.except_ def test_except_style3(self): @@ -1381,7 +1384,8 @@ class CompoundTest(fixtures.TestBase): @testing.requires.intersect @testing.fails_on( - ["sqlite", "mysql"], "sqlite can't handle leading parenthesis" + ["sqlite", testing.requires._mysql_not_mariadb_104], + "sqlite can't handle leading parenthesis", ) def test_intersect_unions(self): u = intersect(