From b2e3ff353f1be1f73897496bfec00e018b7e0dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9renger=20Berthoul?= Date: Fri, 23 Aug 2024 21:29:07 +0200 Subject: [PATCH] argparse: fix type='choice' being obsolete --- pytest_parallel/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',