Skip to content

pytest.raises documention doesn't state upfront that 'match' is keyword only #6158

@brettcannon

Description

@brettcannon

Reading http://pytest.org/en/latest/reference.html#pytest-raises I thought the 'match' argument supporting positional specificity due to it being listed as [, match] in the parameter list and the argument specification not saying anything about it. But if you read a bit farther down you notice that it's mentioned it's keyword-only.

My suspicion is there's no way to change the syntax of that parameter list to use *, to make it clearer that match is positional-only? Otherwise I'm happy to write a PR to state that in its parameter documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions