Skip to content

Remove deprecated TestRunner #80

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

Merged
merged 4 commits into from
Apr 14, 2025
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
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2023, Benjamin Alan Weaver <benjamin.weaver@noirlab.edu>
Copyright (c) 2010-2025, Benjamin Alan Weaver <benjamin.weaver@noirlab.edu>
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ASTROPY_HEADER = False


# Repeat this from specutils/conftest.py so tox picks it up.
# Repeat this from pydl/conftest.py so tox picks it up.
def pytest_configure(config):

if ASTROPY_HEADER:
Expand Down
6 changes: 5 additions & 1 deletion docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ PyDL Changelog
1.0.2 (unreleased)
------------------

* No changes yet.
* Remove deprecated ``astropy.tests.runner.TestRunner`` (PR `#80`_).
See also `astropy/astropy#16177`_.

.. _`#80`: https://github.com/weaverba137/pydl/pull/80
.. _`astropy/astropy#16177`: https://github.com/astropy/astropy/issues/16177

1.0.1 (2024-07-23)
------------------
Expand Down
12 changes: 0 additions & 12 deletions pydl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

.. _`IDL®`: https://www.nv5geospatialsoftware.com/Products/IDL
"""
import os
from astropy.tests.runner import TestRunner

try:
from .version import version as __version__
except ImportError:
Expand All @@ -28,11 +25,6 @@
from .uniq import uniq


# Create the test function for self test
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
test.__test__ = False


class PydlException(Exception):
"""Base class for exceptions raised in PyDL functions.
"""
Expand All @@ -41,7 +33,3 @@ class PydlException(Exception):

__all__ = ['file_lines', 'median', 'pcomp', 'rebin', 'smooth', 'uniq',
'PydlException']

# Clean up namespace
del os
del TestRunner
41 changes: 0 additions & 41 deletions pydl/conftest.py

This file was deleted.

1 change: 0 additions & 1 deletion pydl/pydlutils/sdss.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ def sdss_sweep_circle(ra, dec, radius, stype='star', allobj=False):
Assumes that the sweep files exist in :envvar:`PHOTO_SWEEP` and
that index files have been created.
"""
global sweep_cache
#
# Check values
#
Expand Down
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,15 @@ astropy_header = true
xfail_strict = true
doctest_plus = enabled
text_file_format = rst
addopts = --color=yes --doctest-rst
addopts = --color=yes --doctest-rst --astropy-header

[coverage:run]
relative_files = True
omit =
pydl/_astropy_init*
pydl/conftest.py
pydl/*setup_package*
pydl/tests/*
pydl/*/tests/*
pydl/extern/*
pydl/version*
*/pydl/_astropy_init*
*/pydl/conftest.py
*/pydl/*setup_package*
*/pydl/tests/*
*/pydl/*/tests/*
*/pydl/extern/*
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311,312}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
py{38,39,310,311,312,313}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
build_docs
linkcheck
codestyle
Expand Down
Loading