diff --git a/src/_pytest/main.py b/src/_pytest/main.py index ae115b1f8..7ce4c19ea 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -75,7 +75,7 @@ def pytest_addoption(parser): dest="maxfail", const=1, help="exit instantly on first error or failed test.", - ), + ) group._addoption( "--maxfail", metavar="num", @@ -122,7 +122,7 @@ def pytest_addoption(parser): "--co", action="store_true", help="only collect tests, don't execute them.", - ), + ) group.addoption( "--pyargs", action="store_true",