asdf-format / asdf

ASDF (Advanced Scientific Data Format) is a next generation interchange format for scientific data
http://asdf.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
523 stars 57 forks source link

remove warning filter in pytest plugin #1757

Closed braingram closed 7 months ago

braingram commented 7 months ago

Description

This PR removes the warnings filter in the asdf pytest plugin that was converting (most) warnings to errors: https://github.com/asdf-format/asdf/blob/fcff366690d43eb4c3513fe1a677e45259f4ba2c/pytest_asdf/plugin.py#L242-L245 This filter is preventing all other warning filtering from having any effect. This is currently making it difficult to make the downstream weldx job pass as pandas is triggering a warning during several of the schema tests. Ideally we could ignore this warning (as it's a deprecation warning that weldx will need to address) by adding a filter to the weldx tox environment. However this is not possible because of the above warnings filter. Instead we would have to add the pandas warning to the pytest plugin warnings filter. With this PR we can add the warning filter to the tox.ini and it will have an effect.

As this PR removes the warnings filter internal to the asdf pytest plugin this does mean that any library that relied on this to turn warnings into errors during schema tests will need to add their own warnings filter (if they don't already have one).

Checklist:

braingram commented 7 months ago

Thanks for the review!