Skip to content

Commit

Permalink
Correct help for --runxfail flag
Browse files Browse the repository at this point in the history
The help for the '--runxfail' flag is incorrect. The default behaviour is to
run tests marked as 'xfail' but to ignore the results. This flag alters that
behaviour in two ways:

1. *Only* tests marked 'xfail' are run.
2. The results of these tests are reported as if they weren't marked 'xfail'.

This commit updates the help to describe point 1 above; point 2 is implied.
  • Loading branch information
Allan Lewis committed Apr 30, 2019
1 parent 204004c commit 528eea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/skipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pytest_addoption(parser):
action="store_true",
dest="runxfail",
default=False,
help="run tests even if they are marked xfail",
help="only run xfail tests",
)

parser.addini(
Expand Down

0 comments on commit 528eea7

Please sign in to comment.