Skip to content

Commit

Permalink
Bug 1470530 - [wptrunner] Correct the warning to error option for pyt…
Browse files Browse the repository at this point in the history
…est. r=ato

Currently the "--strict" option is used to turn warnings into
errors. But even the help content says that, it is not true.
Instead this option is only used for markers.

To actually turn warnings into errors the "-W error" option
would have to be used.

More details see:
pytest-dev/pytest#2444

MozReview-Commit-ID: AQMwZlwC46w
  • Loading branch information
whimboo committed Jun 28, 2018
1 parent 44f041a commit fb56c25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run(path, server_config, session_config, timeout=0):

with TemporaryDirectory() as cache:
try:
pytest.main(["--strict", # turn warnings into errors
pytest.main(["-W error", # turn warnings into errors
"-vv", # show each individual subtest and full failure logs
"--capture", "no", # enable stdout/stderr from tests
"--basetemp", cache, # temporary directory
Expand Down

0 comments on commit fb56c25

Please sign in to comment.