Skip to content

Using partial functions in async stories incorrectly raises a StoryDefinitionError #348

@thedrow

Description

@thedrow

As a followup to #347, even if I do set a __name__ to the partial function it is not correctly detected as async.
Since this problem was fixed in Python 3.8 that's no longer the case but we do support older Python 3 versions as well so we should backport this check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions