DEV/TST: print relevant env vars values in test header #23030
Labels
DX
Everything related to making the experience of working on SciPy more pleasant
maintenance
Items related to regular maintenance tasks
Uh oh!
There was an error while loading. Please reload this page.
continued from #22980 (comment)
spin test
prints useful information in the header, including the precise python/shell commands it executes. What this header does not include though, are values of relevant environment variables:$ SCIPY_DEFAULT_DTYPE=float32 spin test
will not show the value ofSCIPY_DEFAULT_DTYPE
.We can fix this by adding a
pytest_report_header
hook can add arbitrary information to the report header (a demo is under the fold).For instance, this diff
produces (note an ADDITIONAL CONFIG just below "platform linux")
I'm not sure what makes Highs this very special so that we're regenerating something named
HConfig.h
on each test run, but that's separate anyway.The text was updated successfully, but these errors were encountered: