From 94d8c071b62394ef7a51f75c109f57ddbe5052bd Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 25 Jan 2020 14:28:32 +0200 Subject: [PATCH] Remove a couple of redundant commas Mypy complains about this once the function is typed: src/_pytest/main.py:85: error: "_addoption" of "OptionGroup" does not return a value src/_pytest/main.py:133: error: "addoption" of "OptionGroup" does not return a value --- src/_pytest/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",