Skip to content

How to handle MultiErrors containing pytest magic exceptions? #104

@oremanj

Description

@oremanj

If you say pytest.skip() inside the body of a test, and also one of your async fixtures has spawned a task that fails, the result of your test will be a MultiError containing the skip exception and the fixture task failure. pytest doesn't interpret this as a skip. The same thing applies to xfail() and so on. How should we handle these? One option would be to let the pytest magic exception propagate with the rest of the MultiError as its __context__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions