Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated call to astropy helpers. #554

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions astroplan/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
PYTEST_HEADER_MODULES = {}
TESTED_VERSIONS = {}

from astropy.tests.helper import enable_deprecations_as_exceptions

# We do this to pick up the test header report even when using LTS astropy
try:
from astropy.tests.pytest_plugins import pytest_report_header # noqa
Expand All @@ -35,11 +33,6 @@
packagename = os.path.basename(os.path.dirname(__file__))
TESTED_VERSIONS[packagename] = version


# Comment out this line to avoid deprecation warnings being raised as
# exceptions
enable_deprecations_as_exceptions()

# Define list of packages for which to display version numbers in the test log
try:
PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ doctest_plus = enabled
text_file_format = rst
addopts = --doctest-rst --doctest-ignore-import-errors
norecursedirs = build docs/_build
filterwarnings =
error::DeprecationWarning

[coverage:run]
omit =
Expand Down Expand Up @@ -89,4 +91,3 @@ max-line-length = 100
[pycodestyle]
exclude = _astropy_init.py,extern,__init__.py
max-line-length = 100