From ddefd3f453e99f2bf8bfc4e0e46bd0ca853200c6 Mon Sep 17 00:00:00 2001 From: Pavel Pristupa Date: Wed, 17 Oct 2018 17:48:47 +0700 Subject: [PATCH] Call group.addoption() instead of _addoption() when parsing command-line arguments Fix #337 --- xdist/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdist/plugin.py b/xdist/plugin.py index 336c93a..ce8f643 100644 --- a/xdist/plugin.py +++ b/xdist/plugin.py @@ -47,7 +47,7 @@ def pytest_addoption(parser): "you can use 'auto' here for auto detection CPUs number on " "host system", ) - group._addoption( + group.addoption( "--maxprocesses", dest="maxprocesses", metavar="maxprocesses",