Skip to content

Commit fe7f7e7

Browse files
committed
Merge pull request #606 from bsipocz/MAINT_remove_testrunner
MAINT: remove the usage of the astropy TestRunner
1 parent 21e67a5 commit fe7f7e7

File tree

4 files changed

+15
-53
lines changed

4 files changed

+15
-53
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ Bug Fixes
1919
- Include port number if it is present in endpoint access URL. [#582]
2020

2121

22+
Deprecations and Removals
23+
-------------------------
24+
25+
- Removed usage of the astropy TestRunner, therefore the unadvertised
26+
``pyvo.test()`` functionality. [#606]
27+
28+
2229
1.5.2 (2024-05-22)
2330
==================
2431

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 & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)