Skip to content

Commit 9353105

Browse files
authored
Merge pull request numpy#26691 from mattip/refactor-scipy-doctest
BUILD: check for scipy-doctest, remove it from requirements
2 parents b52814f + 4424ee4 commit 9353105

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.spin/cmds.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ def check_docs(ctx, pytest_args, n_jobs, verbose, *args, **kwargs):
319319
from the top-level `__init__.py` file.
320320
321321
""" # noqa: E501
322+
try:
323+
# prevent obscure error later
324+
import scipy_doctest
325+
except ModuleNotFoundError as e:
326+
raise ModuleNotFoundError("scipy-doctest not installed") from e
322327
if (not pytest_args):
323328
pytest_args = ('numpy',)
324329

requirements/test_requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ wheel==0.38.1
55
setuptools
66
hypothesis==6.81.1
77
pytest==7.4.0
8-
scipy-doctest
98
pytz==2023.3.post1
109
pytest-cov==4.1.0
1110
meson

0 commit comments

Comments
 (0)