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 committed Oct 14, 2024
1 parent 21e67a5 commit fe7f7e7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 53 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ Bug Fixes
- Include port number if it is present in endpoint access URL. [#582]


Deprecations and Removals
-------------------------

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


1.5.2 (2024-05-22)
==================

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__))
47 changes: 0 additions & 47 deletions pyvo/conftest.py

This file was deleted.

0 comments on commit fe7f7e7

Please sign in to comment.