addoption "--run" behaviour is inconsistent. #1146
Labels
status: critical
grave problem or usability issue that affects lots of users
status: help wanted
developers would like help from experts on this topic
type: backward compatibility
might present some backward compatibility issues which should be carefully noted in the changelog
type: bug
problem that needs to be addressed
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.The text was updated successfully, but these errors were encountered: