Skip to content

Commit f050203

Browse files
author
Allan Lewis
committed
Improve help for --runxfail flag
The help for the '--runxfail' flag is somewhat misleading. The default behaviour is to run tests marked as 'xfail' but to ignore the results. This flag alters that behaviour by running these tests as if they weren't marked 'xfail', i.e. their results are not ignored.
1 parent 204004c commit f050203

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/5188.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve help for ``--runxfail`` flag.

src/_pytest/skipping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def pytest_addoption(parser):
1717
action="store_true",
1818
dest="runxfail",
1919
default=False,
20-
help="run tests even if they are marked xfail",
20+
help="report the results of xfail tests as if they were not marked",
2121
)
2222

2323
parser.addini(

0 commit comments

Comments
 (0)