Fix unittest errors on astropy >= 5.1 #124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This short PR performs four small tasks that allow specsim's unit tests to run on astropy versions >= 5.1, fixing #123:
from astropy.tests.helper import enable_deprecations_as_exceptions
fromconftest.py
from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
and associated commented out code fromconftest.py
from astropy.tests.helper import remote_data
fromtest_observations.py
(where it was unused) andtest_transform.py
@remote_data
with the recommended replacement@pytest.mark.remote_data
intest_transform.py
These changes were necessitated from the changelog for astropy v5.1
There are no functional changes to the main body code of specsim, and the changes are confirmed backwards compatible with astropy 5.0.1.