From: CommanderKeynes Date: Sun, 5 Jan 2025 03:36:19 +0000 (-0600) Subject: Fix test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7096cb98a1485b801a68549d6a2a4ad0244c9714;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix test --- diff --git a/test/dialect/postgresql/test_async_pg_py3k.py b/test/dialect/postgresql/test_async_pg_py3k.py index be08d3b712..0307e68fca 100644 --- a/test/dialect/postgresql/test_async_pg_py3k.py +++ b/test/dialect/postgresql/test_async_pg_py3k.py @@ -7,6 +7,7 @@ from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import select +from sqlalchemy import text from sqlalchemy import String from sqlalchemy import Table from sqlalchemy import testing @@ -335,8 +336,6 @@ class AsyncPgTest(fixtures.TestBase): @async_test async def test_name_connection_func(self, metadata, async_testing_engine): - engine = async_testing_engine( - options={"connect_args": {"prepared_statement_name_func": name_f}}, - ) + engine = async_testing_engine() async with engine.begin() as conn: - await conn.execute("") + await conn.execute(text(""))