File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,11 @@ def pytest_generate_tests(metafunc):
22
22
except ValueError :
23
23
# Called as --pyargs, so --dask isn't available
24
24
pass
25
- if metafunc .config .getoption ("psij" ):
26
- Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
25
+ try :
26
+ if metafunc .config .getoption ("psij" ):
27
+ Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
28
+ except ValueError :
29
+ pass
27
30
metafunc .parametrize ("plugin_dask_opt" , Plugins )
28
31
29
32
if "plugin" in metafunc .fixturenames :
@@ -38,8 +41,11 @@ def pytest_generate_tests(metafunc):
38
41
Plugins = ["slurm" ]
39
42
else :
40
43
Plugins = ["cf" ]
41
- if metafunc .config .getoption ("psij" ):
42
- Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
44
+ try :
45
+ if metafunc .config .getoption ("psij" ):
46
+ Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
47
+ except ValueError :
48
+ pass
43
49
metafunc .parametrize ("plugin" , Plugins )
44
50
45
51
You can’t perform that action at this time.
0 commit comments