We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d27110 commit d4d01bbCopy full SHA for d4d01bb
src/xdist/plugin.py
@@ -37,7 +37,7 @@ def cpu_count():
37
38
39
def parse_numprocesses(s):
40
- if s == "auto" or s == "logical":
+ if s in ("auto", "logical"):
41
return s
42
elif s is not None:
43
return int(s)
@@ -192,7 +192,7 @@ def pytest_configure(config):
192
@pytest.mark.tryfirst
193
def pytest_cmdline_main(config):
194
usepdb = config.getoption("usepdb", False) # a core option
195
- if config.option.numprocesses == "auto" or config.option.numprocesses == "logical":
+ if config.option.numprocesses in ("auto", "logical"):
196
if usepdb:
197
config.option.numprocesses = 0
198
config.option.dist = "no"
0 commit comments