]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
test suite adjustments
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Jul 2026 18:50:16 +0000 (14:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Jul 2026 18:50:16 +0000 (14:50 -0400)
* add skip for psycopg that's similar to asyncpg
* extend thread timeout on lambda concurrency test

Change-Id: Ie2ad3970c84339440dab3cae29029523fbef0c33

test/orm/test_deprecations.py
test/sql/test_lambdas.py

index d70364c4d57487f7aaa451e51744ff69114a98e8..909dfc26fd9b9eda24e91bc970348695c0cf6527 100644 (file)
@@ -1236,6 +1236,19 @@ class MixedEntitiesTest(QueryTest, AssertsCompiledSQL):
         'ERROR:  column "users.name" must appear in the GROUP BY clause'
         " or be used in an aggregate function",
     )
+    @testing.fails_on(
+        "postgresql+psycopg",
+        "psycopg3 uses server-side cursors (via yield_per) which send the "
+        "query to PostgreSQL with distinct positional parameters per "
+        "expression occurrence; PostgreSQL cannot determine that the LIKE "
+        "expression in SELECT and GROUP BY are equivalent.  Fails with "
+        'ERROR:  column "users.name" must appear in the GROUP BY clause'
+        " or be used in an aggregate function",
+    )
+    @testing.fails_on(
+        "postgresql+psycopg_async",
+        "same issue as postgresql+psycopg",
+    )
     def test_values_with_boolean_selects(self):
         """Tests a values clause that works with select boolean
         evaluations"""
index e327bf979024a49d19d7852b5f8b1d8977db88f3..220e46f7ada1d41e6a4b9cf90937484de1985230 100644 (file)
@@ -2243,7 +2243,7 @@ def generate_lambda_stmt(wanted):
         for thread in threads:
             thread.start()
         for thread in threads:
-            thread.join(timeout=10)
+            thread.join(timeout=20)
         for conn in conns:
             conn.close()