You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some great maintenance work to cleanup warnings was done in #6067 and #6074 (probably more)
More recently, I started adding pytestmark = pytest.mark.filterwarnings("error"), as in #6407
Ideally, we would move to failing with warnings in the entire test suite, so that we don't regress and catch deprecation issues earlier on. The approach taken in #6407 might be a good start if there's too much going on.
Based on my understanding, the issue is regarding the capture of the deprecation warning earlier on within the test suites. We have to avoid the capture of deprecation warning in the early stages.
To do this we can add filterwarnings under tool.pytest.ini_options in pyproject.toml.
Please, review the described solution so I can implement it and raise PR for it.
Description
Some great maintenance work to cleanup warnings was done in #6067 and #6074 (probably more)
More recently, I started adding
pytestmark = pytest.mark.filterwarnings("error")
, as in #6407Ideally, we would move to failing with warnings in the entire test suite, so that we don't regress and catch deprecation issues earlier on. The approach taken in #6407 might be a good start if there's too much going on.
https://docs.pytest.org/en/7.1.x/how-to/capture-warnings.html
The text was updated successfully, but these errors were encountered: