Make it configurable to skip subset of deprecations being raised
See original GitHub issueUnder python3.6 we see this issue that using unittest with pytest is raising tons of DeprecationWarnings (e.g. https://github.com/astropy/halotools/issues/718 & https://github.com/astropy/astroquery/pull/815)
It would be rather useful to have a configurable list for treat_deprecations_as_exceptions
that would skip deprecations being raised, similarly as it already happens for a few packages by default:
https://github.com/astropy/astropy/blob/master/astropy/tests/helper.py#L242
I’m adding a milestone, so if noone else picks this up I’ll try to do it myself for the next major release.
Also if this happens before, I’m considering this backporting to a bugfix, as this missing feature may be considered a bug (as the tests are failing in the affiliates).
Issue Analytics
- State:
- Created 6 years ago
- Comments:25 (25 by maintainers)
Backporting is easy, the question whether this can lay low under @eteq’s radar. But nevertheless it’s a super useful addition for affiliates to use straight away, thus I would consider it to backport.
Should we then threat it as a bugfix? 😉