Add pytest-xdist to dev-requirements#724
Conversation
This allows parallel `pytest` execution.
pavoljuhas
left a comment
There was a problem hiding this comment.
Consider if the [psutil] extra is truly needed. IIUC, it only comes into play for --numprocesses=logical option which may not get used at all.
Huh. I was going by the explanation in the installation instructions, which state:
Looking at the code, it looks like it defaults to using However, the rest of the function around that line tries a bunch of other approaches if it doesn't have psutil. Thus, there doesn't seem to be a strong reason to include psutil after all, and I agree with you that it can be removed. Commit 8be2e8a removes it. |
@pavoljuhas rightly noted that `psutil` is not really needed. C.f. review comment #724 (comment)
This allows for parallel
pytestexecution.(By itself, this addition to
dev-requirements.txtdoes nothing; the purpose is to make it a separate commit so that the xdist features can be used in updated workflows and test scripts.)