

def test_row_proc_not_created(self):
    User = self.classes.User
    s = Session()
    q = s.query(User.id, User.name)
    stmt = select([User.id])
    assert_raises_message(exc.NoSuchColumnError, "Could not locate column in row for column 'users.name'", q.from_statement(stmt).all)

dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_loading.py InstancesTest.test_row_proc_not_created/original