Skip to content

Commit f8af879

Browse files
committed
Bug 1470530 - [wptrunner] Correct the warning to error option for pytest. 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 --HG-- extra : rebase_source : 9cc0cffa2d6b5f3082a9e6b93ec729a4601481fc
1 parent 98a8334 commit f8af879

File tree

1 file changed

+1
-1
lines changed
  • testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner

1 file changed

+1
-1
lines changed

testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def run(path, server_config, session_config, timeout=0):
5151

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

0 commit comments

Comments
 (0)