Skip to content

Inconsistent --numprocesses description #1021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Wovchena opened this issue Feb 12, 2024 · 0 comments · Fixed by #1022
Closed

Inconsistent --numprocesses description #1021

Wovchena opened this issue Feb 12, 2024 · 0 comments · Fixed by #1022

Comments

@Wovchena
Copy link

pytest --help prints

With 'auto', attempt to detect physical CPU count. With 'logical', detect logical CPU count. If physical CPU count cannot be found, falls to logical count.

auto falls to logical for pytest-xdist version 3.5.0.

But https://pytest-xdist.readthedocs.io/en/stable/distribution.html states

Use -n logical to use the number of logical CPU cores rather than physical ones. This currently requires the psutil package to be installed; if it is not, pytest-xdist will fall back to -n auto behavior.

logical falls to auto

nicoddemus added a commit to nicoddemus/pytest-xdist that referenced this issue Feb 12, 2024
Fix pytest-dev#1021 and review formatting of the --help messages, following pytest's rules for consistency.
nicoddemus added a commit to nicoddemus/pytest-xdist that referenced this issue Feb 25, 2024
Fix pytest-dev#1021 and review formatting of the --help messages, following pytest's rules for consistency.
nicoddemus added a commit to nicoddemus/pytest-xdist that referenced this issue Feb 25, 2024
Fix pytest-dev#1021 and review formatting of the --help messages, following pytest's rules for consistency.
nicoddemus added a commit that referenced this issue Feb 25, 2024
Fix #1021 and review formatting of the --help messages, following pytest's rules for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant