From: Mike Bayer Date: Sat, 18 Jul 2026 18:50:16 +0000 (-0400) Subject: test suite adjustments X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=13cbc1af77e11c908ddd798be6941e995356e1a1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git test suite adjustments * add skip for psycopg that's similar to asyncpg * extend thread timeout on lambda concurrency test Change-Id: Ie2ad3970c84339440dab3cae29029523fbef0c33 --- diff --git a/test/orm/test_deprecations.py b/test/orm/test_deprecations.py index d70364c4d5..909dfc26fd 100644 --- a/test/orm/test_deprecations.py +++ b/test/orm/test_deprecations.py @@ -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""" diff --git a/test/sql/test_lambdas.py b/test/sql/test_lambdas.py index e327bf9790..220e46f7ad 100644 --- a/test/sql/test_lambdas.py +++ b/test/sql/test_lambdas.py @@ -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()