Pass -Werror to pytest rather than python
johnthagen opened this issue · comments
johnthagen commented
From pytest --help
:
pytest-warnings:
-W PYTHONWARNINGS, --pythonwarnings=PYTHONWARNINGS
set which warnings to report, see -W option of python itself.
Passing -Werror
to pytest
directly is recommended from the help
, and works better for pytest-xdist
.