Skip to content

Pony ORM lambda or generator expression function is marked as unexecuted #685

Open
@jgirardet

Description

@jgirardet

Hi,
Here a small matter I have with ponyorm. In ponyorm you can make query to database with lambda or generator expressions.
those 2 thing are equivalent :

return Praticien.select(lambda p: p.nom_d_exercice.lower().startswith(chaine.lower()))
return select(p for p in Praticien if p.nom_d_exercice.lower().startswith(chaine.lower()))

html report says :port says :

The line 98 didn't finish lmabda on line 98
or
lne 98 didn't run generator expression in line 98

seems that smaller expression are ok :

Praticien.select()

I really would help to try fix it but I do not know where to start

Thank you
Jimmy

Metadata

Metadata

Assignees

No one assigned

    Labels

    exoticUnusual execution environment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions