xdist.plugin: Remove unnecessary type for --dist

1e18f25 corrected an issue with the `type` specification for the `--dist`
argument, setting it to `str`. However, this is the default so there's little
value in specifying it.
This commit is contained in:
Allan Lewis
2017-01-23 11:22:45 +00:00
parent 68470d3e8f
commit 1c3cd73f23

View File

@@ -32,7 +32,7 @@ def pytest_addoption(parser):
group._addoption(
'--dist', metavar="distmode",
action="store", choices=['load', 'each', 'no'],
type=str, dest="dist", default="no",
dest="dist", default="no",
help=("set mode for distributing tests to exec environments.\n\n"
"each: send each test to each available environment.\n\n"
"load: send each test to available environment.\n\n"