We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d0dbf commit 890f5deCopy full SHA for 890f5de
pydra/conftest.py
@@ -15,12 +15,21 @@ def pytest_generate_tests(metafunc):
15
Plugins = ["slurm"]
16
else:
17
Plugins = ["cf"]
18
- if metafunc.config.getoption("dask"):
19
- Plugins.append("dask")
+ try:
+ if metafunc.config.getoption("dask"):
20
+ Plugins.append("dask")
21
+ except ValueError:
22
+ # Called as --pyargs, so --dask isn't available
23
+ pass
24
metafunc.parametrize("plugin_dask_opt", Plugins)
25
26
if "plugin" in metafunc.fixturenames:
27
+ use_dask = False
28
29
+ use_dask = metafunc.config.getoption("dask")
30
31
32
+ if use_dask:
33
Plugins = []
34
elif bool(shutil.which("sbatch")):
35
0 commit comments