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.
This commit is contained in:
Allan Lewis 2019-04-30 17:29:28 +01:00
parent 204004c8b8
commit f050203f5d
No known key found for this signature in database
GPG Key ID: 76E932831D293494
2 changed files with 2 additions and 1 deletions

1
changelog/5188.doc.rst Normal file
View File

@ -0,0 +1 @@
Improve help for ``--runxfail`` flag.

View File

@ -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="report the results of xfail tests as if they were not marked",
)
parser.addini(