Closed dylanagreen closed 1 year ago
Thanks @dylanagreen. I verified that this fixes #123 on a fresh desiconda installation including astropy/5.2:
% source /global/common/software/desi/users/malvarez/desi_environment.sh local 2.0.1
% git clone --single-branch --fix-123 https://github.com/desihub/specsim
% cd specsim
% python setup.py test
...
============================================ 67 passed, 9 skipped, 15 warnings in 32.15s =============================================
Will merge now.
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.