Closed ev-br closed 6 months ago
@Sheila-nk @melissawm any chance you could review this PR? Would be much appreciated.
https://github.com/scipy/scipy/pull/20112 should take care of IGNORE_IMPORTSMISMATCH
Merging now to keep the ball rolling as I work on test errors after collection is successful. A post-merge review would still be most welcome.
Refactor the doctest collection stage a bit.
The key simplifications are
build-install
folder. Its contents matches the installed version, so it should be identical to$ pytest --pyargs scipy
for an installed scipy (I think?). This obviates the need for thePY_IGNORE_IMPORTMISMATCH=1
env var --- almost. The remaining need seems to be due to some weirdness inscipy.signal
, which indeed has a matching.py
and.so
modules:This probably needs to be looked at on the scipy side.
pytest --collect-only ...
and some light postprocessing (below the fold)The full stanza to run this, including pytest ignores, is currently (I know)
Log posprocessing scripts are below the fold:
With these, the logs agree for the following combination: https://github.com/ev-br/scipy/tree/doctest_plugin + this PR, and https://github.com/scipy/scipy/pull/16391, modulo https://github.com/ev-br/scpdt/issues/106.