Преглед изворни кода

Refs #33713 -- Removed unnecessary skip for MariaDB 10.3.

Mariusz Felisiak пре 2 година
родитељ
комит
20b6e30858
1 измењених фајлова са 3 додато и 7 уклоњено
  1. 3 7
      django/db/backends/mysql/features.py

+ 3 - 7
django/db/backends/mysql/features.py

@@ -175,16 +175,12 @@ class DatabaseFeatures(BaseDatabaseFeatures):
                     },
                 }
             )
-        if (
-            self.connection.mysql_is_mariadb and self.connection.mysql_version < (10, 4)
-        ) or (
-            not self.connection.mysql_is_mariadb
-            and self.connection.mysql_version < (8,)
+        if not self.connection.mysql_is_mariadb and self.connection.mysql_version < (
+            8,
         ):
             skips.update(
                 {
-                    "Parenthesized combined queries are not supported on MySQL < 8 and "
-                    "MariaDB < 10.4": {
+                    "Parenthesized combined queries are not supported on MySQL < 8.": {
                         "queries.test_qs_combinators.QuerySetSetOperationTests."
                         "test_union_in_subquery",
                         "queries.test_qs_combinators.QuerySetSetOperationTests."