Fix help for filterwarnings ini option

This commit is contained in:
Daniel Hahler 2017-07-21 14:18:45 +02:00
parent ccc4b3a501
commit 97e5a3c889
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ def pytest_addoption(parser):
'-W', '--pythonwarnings', action='append',
help="set which warnings to report, see -W option of python itself.")
parser.addini("filterwarnings", type="linelist",
help="Each line specifies warning filter pattern which would be passed"
"to warnings.filterwarnings. Process after -W and --pythonwarnings.")
help="Each line specifies a pattern for "
"warnings.filterwarnings. "
"Processed after -W and --pythonwarnings.")
@contextmanager