Skip to content

Commit ddefd3f

Browse files
committed
Call group.addoption() instead of _addoption() when parsing command-line arguments
Fix #337
1 parent 5ce8a6e commit ddefd3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdist/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pytest_addoption(parser):
4747
"you can use 'auto' here for auto detection CPUs number on "
4848
"host system",
4949
)
50-
group._addoption(
50+
group.addoption(
5151
"--maxprocesses",
5252
dest="maxprocesses",
5353
metavar="maxprocesses",

0 commit comments

Comments
 (0)