From fed218967421fb25ecd93cb24ee894cc1f3852f3 Mon Sep 17 00:00:00 2001 From: lphuc2250gma Date: Thu, 11 Jun 2026 17:19:57 -0400 Subject: [PATCH] chore: improve sqlalchemy maintenance path (#13351) Co-authored-by: Noa Levi <275430404+lphuc2250gma@users.noreply.github.com> (cherry picked from commit 41caa189ae948647074d06c5ccc4c292ba20d5f5) --- test/orm/test_bind.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/orm/test_bind.py b/test/orm/test_bind.py index abd008cadf..d338620d72 100644 --- a/test/orm/test_bind.py +++ b/test/orm/test_bind.py @@ -496,6 +496,14 @@ class BindIntegrationTest(_fixtures.FixtureTest): testing.db, ) + assert_raises_message( + sa.exc.ArgumentError, + "Not an acceptable bind target: foobar", + sess.bind_table, + "foobar", + testing.db, + ) + self.mapper_registry.map_imperatively( self.classes.User, self.tables.users ) @@ -509,6 +517,14 @@ class BindIntegrationTest(_fixtures.FixtureTest): testing.db, ) + assert_raises_message( + sa.exc.ArgumentError, + "Not an acceptable bind target: User()", + sess.bind_table, + u_object, + testing.db, + ) + @engines.close_open_connections def test_bound_connection(self): users, User = self.tables.users, self.classes.User -- 2.47.3