]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add missing requires in the tests for older postgresql version
authorDenis Laxalde <denis@laxalde.org>
Wed, 21 May 2025 07:23:12 +0000 (03:23 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Wed, 21 May 2025 07:23:12 +0000 (03:23 -0400)
Follow up commit 39bb17442ce6ac9a3dde5e2b72376b77ffce5e28.

Closes: #12612
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12612
Pull-request-sha: 894276ff232ba328cc235ecf04e84067db204c3d

Change-Id: Ib8d47f11e34d6bb40d9a88d5f411c2d5fee70823

test/dialect/postgresql/test_query.py
test/dialect/postgresql/test_reflection.py
test/dialect/postgresql/test_types.py

index c55cd0a5d7ce38a3bc555c9817ba586916fa9ffb..fc68e08ed4df7bad503d8b664e9a20e64060bde8 100644 (file)
@@ -1007,7 +1007,7 @@ class MatchTest(fixtures.TablesTest, AssertsCompiledSQL):
         (func.to_tsquery,),
         (func.plainto_tsquery,),
         (func.phraseto_tsquery,),
-        (func.websearch_to_tsquery,),
+        (func.websearch_to_tsquery, testing.skip_if("postgresql < 11")),
         argnames="to_ts_func",
     )
     @testing.variation("use_regconfig", [True, False, "literal"])
index ebe751b5b348831ebba2fe992fbd6748ca8414d4..f8030691744f9a25bfcb2b620970b39e7943d428 100644 (file)
@@ -910,6 +910,9 @@ class ReflectionTest(
         subject = Table("subject", meta2, autoload_with=connection)
         eq_(subject.primary_key.columns.keys(), ["p2", "p1"])
 
+    @testing.skip_if(
+        "postgresql < 15.0", "on delete with column list not supported"
+    )
     def test_reflected_foreign_key_ondelete_column_list(
         self, metadata, connection
     ):
index 795a897699b331b4c994c594cffdebce610d6cc5..0df48f6fd124aec1d473d9d7ed20dde710be2fa7 100644 (file)
@@ -3548,7 +3548,11 @@ class SpecialTypesTest(fixtures.TablesTest, ComparesTables):
         (postgresql.INET, "127.0.0.1"),
         (postgresql.CIDR, "192.168.100.128/25"),
         (postgresql.MACADDR, "08:00:2b:01:02:03"),
-        (postgresql.MACADDR8, "08:00:2b:01:02:03:04:05"),
+        (
+            postgresql.MACADDR8,
+            "08:00:2b:01:02:03:04:05",
+            testing.skip_if("postgresql < 10"),
+        ),
         argnames="column_type, value",
         id_="na",
     )