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
This commit is contained in:
Ran Benita 2020-01-25 14:28:32 +02:00 committed by Daniel Hahler
parent 6f2943c7b3
commit 94d8c071b6
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ def pytest_addoption(parser):
dest="maxfail", dest="maxfail",
const=1, const=1,
help="exit instantly on first error or failed test.", help="exit instantly on first error or failed test.",
), )
group._addoption( group._addoption(
"--maxfail", "--maxfail",
metavar="num", metavar="num",
@ -122,7 +122,7 @@ def pytest_addoption(parser):
"--co", "--co",
action="store_true", action="store_true",
help="only collect tests, don't execute them.", help="only collect tests, don't execute them.",
), )
group.addoption( group.addoption(
"--pyargs", "--pyargs",
action="store_true", action="store_true",