Skip to content

Commit a7a956f

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 UltraBlame original commit: e4190bcbd4ef1b4dc8bb21c265c667cd007326d1
1 parent b23cc47 commit a7a956f

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",
54+
pytest.main(["-W error",
5555
"-vv",
5656
"--capture", "no",
5757
"--basetemp", cache,

0 commit comments

Comments
 (0)