-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
As far as I can tell, -Wdefault, as used by epytest(), causes pytest to override ignore in setup.cfg.
With dev-lang/python-3.12.6 and dev-python/pytest-8.3.2:
$ pytest
...
test_example.py . [100%]
========================================================== 1 passed in 0.01s ===========================================================
$ pytest -Wdefault
...
test_example.py . [100%]
=========================================================== warnings summary ===========================================================
test_example.py:1
test_example.py:1: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
import crypt
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===================================================== 1 passed, 1 warning in 0.01s =====================================================
ch
test_example.py
import crypt
def test_one():
passsetup.cfg
[tool:pytest]
filterwarnings =
error
ignore::DeprecationWarning
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels