diff --git a/pytest_parallel/plugin.py b/pytest_parallel/plugin.py index 5a9ad05..da94048 100644 --- a/pytest_parallel/plugin.py +++ b/pytest_parallel/plugin.py @@ -14,7 +14,7 @@ def pytest_addoption(parser): parser.addoption( '--scheduler', dest='scheduler', - type='choice', + type=str, choices=['sequential', 'static', 'dynamic', 'slurm'], default='sequential', help='Method used by pytest_parallel to schedule tests',