From: Mike Bayer Date: Sun, 26 Oct 2025 13:30:54 +0000 (-0400) Subject: repair / modernize binary literal round trip test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ccd8e9ef957509e3209dc45116da14b11b9604;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git repair / modernize binary literal round trip test update this test to use modern literal round trip now that execute_compiled is gone Fixes: #12940 Change-Id: I587dc6845fa8ff078baf3f6e08e54ce6cec84630 --- diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 899d2227c1..c366059b64 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -3112,10 +3112,9 @@ class BinaryTest(fixtures.TablesTest, AssertsExecutionResults): @testing.requires.binary_literals def test_literal_roundtrip(self, connection): - compiled = select(cast(literal(util.b("foo")), LargeBinary)).compile( - dialect=testing.db.dialect, compile_kwargs={"literal_binds": True} + result = connection.execute( + select(cast(literal(b"foo", literal_execute=True), LargeBinary)) ) - result = connection.exec_driver_sql(compiled.string) eq_(result.scalar(), util.b("foo")) def test_bind_processor_no_dbapi(self):