Skip to content

Commit

Permalink
Merge pull request #606 from bsipocz/MAINT_remove_testrunner
Browse files Browse the repository at this point in the history
MAINT: remove the usage of the astropy TestRunner
  • Loading branch information
bsipocz authored Oct 2, 2024
2 parents 9d3c5be + 029980e commit 130d08d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 54 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Deprecations and Removals
- Deprecating the use of "image" and "spectrum" in registry Servicetype
constraints [#449]

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


1.5.3 (unreleased)
==================
Expand Down
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import os
import tempfile
import numpy as np
from astropy.utils import minversion

try:
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
Expand Down Expand Up @@ -38,6 +40,11 @@
iers_conf.auto_download = False


# Keep this until we require numpy to be >=2.0
if minversion(np, "2.0.0.dev0+git20230726"):
np.set_printoptions(legacy="1.25")


def pytest_configure(config):
"""Configure Pytest with Astropy.
Expand Down
7 changes: 1 addition & 6 deletions pyvo/_astropy_init.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os

__all__ = ['__version__', 'test']
__all__ = ['__version__']

try:
from .version import version as __version__
except ImportError:
__version__ = ''

# Create the test function for self test
from astropy.tests.runner import TestRunner
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
48 changes: 0 additions & 48 deletions pyvo/conftest.py

This file was deleted.

0 comments on commit 130d08d

Please sign in to comment.