You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pytest_parallel/plugin.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ def pytest_configure(config):
107
107
detach=config.getoption('detach')
108
108
ifnotschedulerin ['slurm', 'shell']:
109
109
assertnotis_worker, f'Internal pytest_parallel error `--_worker` not available with`--scheduler={scheduler}`'
110
+
assertnotn_workers, f'pytest_parallel error `--n-workers` not available with`--scheduler={scheduler}`. Launch with `mpirun -np {n_workers}` to run in parallel'
110
111
ifschedulerin ['slurm', 'shell'] andnotis_worker:
111
112
ifn_workersisNone:
112
113
raisePytestParallelError(f'You need to specify `--n-workers` when `--scheduler={scheduler}`')
0 commit comments