spacetelescope / stdatamodels

https://stdatamodels.readthedocs.io
Other
5 stars 24 forks source link

update warning filters in tests for pytest 8 #245

Closed braingram closed 7 months ago

braingram commented 8 months ago

pytest 8 includes a change to how "pytest.warns" behaves (it now re-emits non-matched warnings). Running the stdatamodels test suite against pytest 8 (rc1) there is one failing test test_ndarray_validation due to this change.

This PR updates the warning filters in test_ndarray_validation to work with pytest 8.

Checklist

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ee53eab) 0.00% compared to head (0a21094) 64.84%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #245 +/- ## =========================================== + Coverage 0 64.84% +64.84% =========================================== Files 0 103 +103 Lines 0 5694 +5694 =========================================== + Hits 0 3692 +3692 - Misses 0 2002 +2002 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.