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
{{ message }}
Repository navigation
Deprecate catch_warnings and raises in favor of pytest machinery? #6761
For example, some catch_warnings can be replaced with pytest.warns (see https://docs.pytest.org/en/latest/warnings.html#warns). As a result, do we still need warning related functionality in astropy/tests/helper.py?
UPDATE: With that PR merged, we no longer use catch_warnings or raises from helper.py but it doesn't stop them from creeping back in until we start to deprecate them. Deprecation is a battle for another day.
changed the title [-]Replace warning handlers with pytest machinery?[/-][+]Deprecate catch_warnings and raises in favor of pytest machinery?[/+]on Jul 31, 2020
Activity
mhvk commentedon Oct 21, 2017
I've wondered too whether pytest has caught up with our custom machinery; it would certainly be nice to be as compliant as possible in our tests.
pllim commentedon Jun 17, 2020
Started an attempt at #10504 .
UPDATE: With that PR merged, we no longer use
catch_warningsorraisesfromhelper.pybut it doesn't stop them from creeping back in until we start to deprecate them. Deprecation is a battle for another day.[-]Replace warning handlers with pytest machinery?[/-][+]Deprecate catch_warnings and raises in favor of pytest machinery?[/+]