Skip to content

Commit e761853

Browse files
rosteenpllim
andauthored
Remove deprecated astropy test runner (#1214)
* Remove deprecated astropy test runner * Delete specutils/tests/coveragerc * Remove unnecessary coverage omit * Update spectral_regions.rst * Update spectrum1d.rst * Update spectrum_collection.rst --------- Co-authored-by: P. L. Lim <[email protected]>
1 parent daa4637 commit e761853

File tree

6 files changed

+0
-45
lines changed

6 files changed

+0
-45
lines changed

docs/spectral_regions.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ Reference/API
349349
:no-heading:
350350
:no-inheritance-diagram:
351351

352-
:skip: test
353352
:skip: QTable
354353
:skip: Spectrum1D
355354
:skip: SpectrumCollection

docs/spectrum1d.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ Reference/API
421421
:no-heading:
422422
:headings: -~
423423

424-
:skip: test
425424
:skip: QTable
426425
:skip: SpectrumCollection
427426
:skip: SpectralRegion

docs/spectrum_collection.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ Reference/API
105105
:no-heading:
106106
:no-inheritance-diagram:
107107

108-
:skip: test
109108
:skip: QTable
110109
:skip: Spectrum1D
111110
:skip: SpectralRegion

setup.cfg

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,15 @@ filterwarnings =
7474

7575
[coverage:run]
7676
omit =
77-
specutils/_astropy_init*
7877
specutils/conftest.py
79-
specutils/*setup_package*
8078
specutils/tests/*
8179
specutils/*/tests/*
8280
specutils/*/*/tests/*
83-
specutils/extern/*
8481
specutils/version*
85-
*/specutils/_astropy_init*
8682
*/specutils/conftest.py
87-
*/specutils/*setup_package*
8883
*/specutils/tests/*
8984
*/specutils/*/tests/*
9085
*/specutils/*/*/tests/*
91-
*/specutils/extern/*
9286
*/specutils/version*
9387

9488
[coverage:report]

specutils/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66

77
from astropy import config as _config
8-
from astropy.tests.runner import TestRunner
98

109
__citation__ = 'https://doi.org/10.5281/zenodo.1421356'
1110

@@ -14,11 +13,6 @@
1413
except ImportError:
1514
__version__ = ''
1615

17-
# Create the test function for self test
18-
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
19-
test.__test__ = False
20-
21-
2216
# Allow loading spectrum object from top level module
2317
from .spectra import * # noqa
2418

@@ -43,5 +37,4 @@ class Conf(_config.ConfigNamespace):
4337
# Clean up namespace
4438
del os
4539
del _config
46-
del TestRunner
4740
del _load_user_io

specutils/tests/coveragerc

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)