Open Sheila-nk opened 10 months ago
This is a problem for testing installed scipy: pytest --pyargs scipy
fails collection. For dev installs, we can add explicit ignores indeed. Otherwise, we probably want to invent a way to add a way to blacklist modules and to skip collection of things which try to import blacklisted things.
Pytest collection fails on an attempt at importing
cupy
andpytorch
for_lib/array_api_compat
andsympy
for_interpnd_info.py
.To reproduce on the Scipy shell:
The current solution is to exclude
_lib/array_api_compat
and_interpnd_info.py
from doctesting: