From 1e18f25cd0c1cece4d41a6c16f31bc4abd0d8c7f Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Mon, 24 Oct 2016 11:28:54 -0400 Subject: [PATCH] Don't show warning from pytest 3 --- xdist/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdist/plugin.py b/xdist/plugin.py index 7acba85..a63cfa7 100644 --- a/xdist/plugin.py +++ b/xdist/plugin.py @@ -32,7 +32,7 @@ def pytest_addoption(parser): group._addoption( '--dist', metavar="distmode", action="store", choices=['load', 'each', 'no'], - type="choice", dest="dist", default="no", + type=str, 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"