Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: remove the usage of the astropy TestRunner #606

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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.

Loading