Skip to content

Commit c7c3814

Browse files
authored
Merge pull request #80 from weaverba137/remove-testrunner
Remove deprecated TestRunner
2 parents 48e15d4 + 5dec650 commit c7c3814

File tree

8 files changed

+9
-65
lines changed

8 files changed

+9
-65
lines changed

LICENSE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010-2023, Benjamin Alan Weaver <benjamin.weaver@noirlab.edu>
1+
Copyright (c) 2010-2025, Benjamin Alan Weaver <benjamin.weaver@noirlab.edu>
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ASTROPY_HEADER = False
66

77

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

1111
if ASTROPY_HEADER:

docs/changes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ PyDL Changelog
55
1.0.2 (unreleased)
66
------------------
77

8-
* No changes yet.
8+
* Remove deprecated ``astropy.tests.runner.TestRunner`` (PR `#80`_).
9+
See also `astropy/astropy#16177`_.
10+
11+
.. _`#80`: https://github.com/weaverba137/pydl/pull/80
12+
.. _`astropy/astropy#16177`: https://github.com/astropy/astropy/issues/16177
913

1014
1.0.1 (2024-07-23)
1115
------------------

pydl/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
1313
.. _`IDL®`: https://www.nv5geospatialsoftware.com/Products/IDL
1414
"""
15-
import os
16-
from astropy.tests.runner import TestRunner
17-
1815
try:
1916
from .version import version as __version__
2017
except ImportError:
@@ -28,11 +25,6 @@
2825
from .uniq import uniq
2926

3027

31-
# Create the test function for self test
32-
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
33-
test.__test__ = False
34-
35-
3628
class PydlException(Exception):
3729
"""Base class for exceptions raised in PyDL functions.
3830
"""
@@ -41,7 +33,3 @@ class PydlException(Exception):
4133

4234
__all__ = ['file_lines', 'median', 'pcomp', 'rebin', 'smooth', 'uniq',
4335
'PydlException']
44-
45-
# Clean up namespace
46-
del os
47-
del TestRunner

pydl/conftest.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

pydl/pydlutils/sdss.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ def sdss_sweep_circle(ra, dec, radius, stype='star', allobj=False):
576576
Assumes that the sweep files exist in :envvar:`PHOTO_SWEEP` and
577577
that index files have been created.
578578
"""
579-
global sweep_cache
580579
#
581580
# Check values
582581
#

setup.cfg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,15 @@ astropy_header = true
6161
xfail_strict = true
6262
doctest_plus = enabled
6363
text_file_format = rst
64-
addopts = --color=yes --doctest-rst
64+
addopts = --color=yes --doctest-rst --astropy-header
6565

6666
[coverage:run]
6767
relative_files = True
6868
omit =
69-
pydl/_astropy_init*
70-
pydl/conftest.py
71-
pydl/*setup_package*
7269
pydl/tests/*
7370
pydl/*/tests/*
7471
pydl/extern/*
7572
pydl/version*
76-
*/pydl/_astropy_init*
77-
*/pydl/conftest.py
78-
*/pydl/*setup_package*
7973
*/pydl/tests/*
8074
*/pydl/*/tests/*
8175
*/pydl/extern/*

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311,312}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
3+
py{38,39,310,311,312,313}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
44
build_docs
55
linkcheck
66
codestyle

0 commit comments

Comments
 (0)