Repository navigation
MNT Avoid pytest warnings when pytest-run-parallel is not installed - #32088
Conversation
There was a problem hiding this comment.
@lesteve thanks for the workflow fix.
I hit me by surprise because nowhere in the dev doc is written what I need to install (pytest-run-parallel) to develop and run tests.
To be 100% clear, there was no expectation that you needed to install Free-threaded CI with pytest-run-parallel is very new (was merged yesterday I think). Depending on how it goes (how often the CI is broken in the next month or so) we may decide to document a bit how to run locally to reproduce CI errors, we will see ... |
|
@lesteve I am really grateful for the quick fix and it was a coincidance that I noticed the regression at all. |
Fix @lorentzenchr's workflow regression from #31342 (comment). Obligatory xkcd 😉.
Inspired from scipy conftest.py + tweak to add
thread_unsafe_fixtures(I guess scipy does not use this option).Tested locally with:
With the previous pytest command, on this PR the tests run 1. On
mainit fails at collection time with pytestINTERNALERROR.Footnotes
eventually the tests fail because there are plenty of warnings in the scikit-learn suite ↩