Skip to content

Commit 130d08d

Browse files
authored
Merge pull request #606 from bsipocz/MAINT_remove_testrunner
MAINT: remove the usage of the astropy TestRunner
2 parents 9d3c5be + 029980e commit 130d08d

File tree

4 files changed

+11
-54
lines changed

4 files changed

+11
-54
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Deprecations and Removals
6565
- Deprecating the use of "image" and "spectrum" in registry Servicetype
6666
constraints [#449]
6767

68+
- Removed usage of the astropy TestRunner, therefore the unadvertised
69+
``pyvo.test()`` functionality. [#606]
70+
6871

6972
1.5.3 (unreleased)
7073
==================

conftest.py

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

66
import os
77
import tempfile
8+
import numpy as np
9+
from astropy.utils import minversion
810

911
try:
1012
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
@@ -38,6 +40,11 @@
3840
iers_conf.auto_download = False
3941

4042

43+
# Keep this until we require numpy to be >=2.0
44+
if minversion(np, "2.0.0.dev0+git20230726"):
45+
np.set_printoptions(legacy="1.25")
46+
47+
4148
def pytest_configure(config):
4249
"""Configure Pytest with Astropy.
4350

pyvo/_astropy_init.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2-
import os
32

4-
__all__ = ['__version__', 'test']
3+
__all__ = ['__version__']
54

65
try:
76
from .version import version as __version__
87
except ImportError:
98
__version__ = ''
10-
11-
# Create the test function for self test
12-
from astropy.tests.runner import TestRunner
13-
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))

pyvo/conftest.py

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

0 commit comments

Comments
 (0)