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

UltraBlame original commit: e4190bcbd4ef1b4dc8bb21c265c667cd007326d1
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent b23cc47 commit a7a956f
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",
pytest.main(["-W error",
"-vv",
"--capture", "no",
"--basetemp", cache,
Expand Down

0 comments on commit a7a956f

Please sign in to comment.