Skip to content

Commit c8a96f1

Browse files
committed
MAINT: remove test() due to upstream deprecation
1 parent d619223 commit c8a96f1

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

astroquery/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Affiliated packages may add whatever they like to this file, but
1010
# should keep this content at the top.
1111
# ----------------------------------------------------------------------------
12-
from ._astropy_init import __version__, __githash__, test
12+
from ._astropy_init import __version__, __githash__
1313
# ----------------------------------------------------------------------------
1414

1515
import os
@@ -18,7 +18,7 @@
1818
from .logger import _init_log
1919
from astropy import config as _config
2020

21-
__all__ = ["__version__", "__githash__", "__citation__", "__bibtex__", "test", "log"]
21+
__all__ = ["__version__", "__githash__", "__citation__", "__bibtex__", "log"]
2222

2323

2424
# Set the bibtex entry to the article referenced in CITATION.

astroquery/_astropy_init.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,3 @@
2121
from .version import githash as __githash__
2222
except ImportError:
2323
__githash__ = ''
24-
25-
26-
if not _ASTROPY_SETUP_: # noqa
27-
import os
28-
29-
# Create the test function for self test
30-
from astropy.tests.runner import TestRunner
31-
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
32-
test.__test__ = False
33-
__all__ += ['test']

0 commit comments

Comments
 (0)