From: lphuc2250gma Date: Thu, 11 Jun 2026 21:19:57 +0000 (-0400) Subject: chore: improve sqlalchemy maintenance path (#13351) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=41caa189ae948647074d06c5ccc4c292ba20d5f5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git chore: improve sqlalchemy maintenance path (#13351) Co-authored-by: Noa Levi <275430404+lphuc2250gma@users.noreply.github.com> --- diff --git a/test/orm/test_bind.py b/test/orm/test_bind.py index 56e9422e43..c90b5fbb1c 100644 --- a/test/orm/test_bind.py +++ b/test/orm/test_bind.py @@ -502,6 +502,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 ) @@ -515,6 +523,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