File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ def pytest_generate_tests(metafunc):
30
30
try :
31
31
if metafunc .config .getoption ("psij" ):
32
32
Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
33
- if bool (shutil .which ("sbatch" )) and metafunc .config .getoption ("psij" ) == "slurm" :
33
+ if (
34
+ bool (shutil .which ("sbatch" ))
35
+ and metafunc .config .getoption ("psij" ) == "slurm"
36
+ ):
34
37
Plugins .remove ("slurm" )
35
38
except ValueError :
36
39
pass
@@ -51,7 +54,10 @@ def pytest_generate_tests(metafunc):
51
54
try :
52
55
if metafunc .config .getoption ("psij" ):
53
56
Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
54
- if bool (shutil .which ("sbatch" )) and metafunc .config .getoption ("psij" ) == "slurm" :
57
+ if (
58
+ bool (shutil .which ("sbatch" ))
59
+ and metafunc .config .getoption ("psij" ) == "slurm"
60
+ ):
55
61
Plugins .remove ("slurm" )
56
62
except ValueError :
57
63
pass
You can’t perform that action at this time.
0 commit comments