From a5ccd8e9ef957509e3209dc45116da14b11b9604 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 26 Oct 2025 09:30:54 -0400 Subject: [PATCH] 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 --- test/sql/test_types.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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): -- 2.47.3