Possible missing warning filters in pytest_configure #10128
Labels
plugin: warnings
related to the warnings builtin plugin
topic: config
related to config handling, argument parsing and config file
type: question
general question, might be closed after 2 weeks of inactivity
Is there a reason why we don't apply any other warning filters passed in
pytest.ini. This seems like a possible bug,pytest/src/_pytest/config/__init__.py
Line 1010 in c2b1d5b
Output
Warning is thrown before test session starts
Reproducer
conftest.py
Content ->
pytest.iniWarning gets filtered out in testcases as expected.
Possible fix:
warnings.simplefilter('default')usingapply_warning_filterspytest/src/_pytest/config/__init__.py
Line 1709 in e54c6a1
The text was updated successfully, but these errors were encountered: