Running on an installed package collects too much
Closed this issue · 0 comments
ev-br commented
$ pytest --pyargs scipy --doctest-modules --ignore=/home/br/repos/scipy/scipy/build-install/lib/python3.10/site-packages/scipy/_lib --ignore=../../repos/scipy/scipy/build-install/lib/python3.10/site-packages/scipy/interpolate/_interpnd_info.py --doctest-collect=api
produces
======================================================================= 271 failed, 2168 passed, 6087 warnings in 317.27s (0:05:17) =======================================================================
br@gonzales:~/sweethome/temp$ pytest --pyargs scipy --doctest-modules --ignore=/home/br/repos/scipy/scipy/build-install/lib/python3.10/site-packages/scipy/_lib --ignore=../../repos/scipy/scipy/build-install/lib/python3.10/site-packages/scipy/interpolate/_interpnd_info.py --doctest-collect=api
Adding --collect-only
gives way too many items:
<snip>
../proj/scipy/refguide_check_2/scpdt/scpdt/util.py:241
/home/br/sweethome/proj/scipy/refguide_check_2/scpdt/scpdt/util.py:241: DeprecationWarning: `scipy.stats.stats.BrunnerMunzelResult` is deprecated along with the `scipy.stats.stats` namespace. `scipy.stats.stats.BrunnerMunzelResult` will be removed in SciPy 1.14.0, and the `scipy.stats.stats` namespace will be removed in SciPy 2.0.0.
obj = getattr(module, name)
../proj/scipy/refguide_check_2/scpdt/scpdt/util.py:241
/home/br/sweethome/proj/scipy/refguide_check_2/scpdt/scpdt/util.py:241: DeprecationWarning: `scipy.stats.stats.RepeatedResults` is deprecated along with the `scipy.stats.stats` namespace. `scipy.stats.stats.RepeatedResults` will be removed in SciPy 1.14.0, and the `scipy.stats.stats` namespace will be removed in SciPy 2.0.0.
obj = getattr(module, name)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====================================================================================== 3633 tests collected in 3.76s ======================================================================================
Am labeling it as an enhancement because the main real use case for the moment is dev installs.