]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update test reqs for mariadb 10.4, 10.5
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Feb 2020 17:01:17 +0000 (12:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Feb 2020 17:01:59 +0000 (12:01 -0500)
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)

test/requirements.py
test/sql/test_query.py

index a8f7828c255f0a31a0bb2e88eff487cc016bcde2..01382c8c126a514bf185fe4ced98e47cbd79b0ed 100644 (file)
@@ -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")
index 70cc2393fbb5e04bc6207db5007f5aa5697ae0a4..527d55066503ed98212570eac7cbeb8beb0456a6 100644 (file)
@@ -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(