Skip to content

addoption "--run" behaviour is inconsistent. #1146

@EvanTheB

Description

@EvanTheB

I created an option with parser.addoption("--run")
Using this option worked find with the command line
py.test --run argument
However using the alternative syntax
py.test --run=argument
Caused the failure py.test: error: argument --runxfail: ignored explicit argument 'abc'. I assume that the option matching is using prefixes. I think the behaviour of runxfail being triggered by --run is fine, however the behaviour should be consistent between the two ways of specifying command line options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: criticalgrave problem or usability issue that affects lots of usersstatus: help wanteddevelopers would like help from experts on this topictype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions