Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress third party warnings in pytest #857

Open
stefsmeets opened this issue Nov 6, 2020 · 1 comment
Open

Suppress third party warnings in pytest #857

stefsmeets opened this issue Nov 6, 2020 · 1 comment
Labels
enhancement New feature or request testing

Comments

@stefsmeets
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently running pytest generates a large number of warnings from third-party modules, i.e.

tests/functional/test_multimodel.py: 300 warnings
  /home/stef/miniconda3/envs/esmvaltool/lib/python3.8/site-packages/iris/fileformats/cf.py:221: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
    return tuple((attr, self.getncattr(attr)) for attr in

These are unhelpful, and frankly not our responsibility, but they distract from testing and obscure the warnings that we can fix.
I would like to add some filters to remove those warnings as described here:
https://stackoverflow.com/questions/58399870/pytest-suppress-deprecationwarning-from-specific-3rd-party-modules

Would you be able to help out?
👍👍

@schlunma
Copy link
Contributor

schlunma commented Feb 4, 2022

Moving this to v2.6 since there is not open PR yet.

@schlunma schlunma modified the milestones: v2.5.0, v2.6.0 Feb 4, 2022
@sloosvel sloosvel removed this from the v2.6.0 milestone Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing
Projects
None yet
4 participants