pytest.warns()
asserts when pytest.skip()
is called
#11907
Labels
plugin: warnings
related to the warnings builtin plugin
type: bug
problem that needs to be addressed
type: regression
indicates a problem that was introduced in a release which was working previously
When
pytest.skip()
is used insidepytest.warns()
(and no warning is emitted), the test fails. I'm not sure if this is intentional but it feels a bit off, given that the test would normally be skipped instead. I've hit this in the wild in urllib3's test suite.Quick reproducer:
Yields:
pip list:
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: