@@ -23,18 +23,13 @@ def pytest_generate_tests(metafunc):
2323 Plugins = ["debug" , "cf" ]
2424 try :
2525 if metafunc .config .getoption ("dask" ):
26- Plugins . append ( "dask" )
26+ Plugins = [ "dask" ]
2727 except ValueError :
2828 # Called as --pyargs, so --dask isn't available
2929 pass
3030 try :
3131 if metafunc .config .getoption ("psij" ):
32- Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
33- if (
34- bool (shutil .which ("sbatch" ))
35- and metafunc .config .getoption ("psij" ) == "slurm"
36- ):
37- Plugins .remove ("slurm" )
32+ Plugins = ["psij-" + metafunc .config .getoption ("psij" )]
3833 except ValueError :
3934 pass
4035 metafunc .parametrize ("plugin_dask_opt" , Plugins )
@@ -53,12 +48,7 @@ def pytest_generate_tests(metafunc):
5348 Plugins = ["debug" , "cf" ]
5449 try :
5550 if metafunc .config .getoption ("psij" ):
56- Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
57- if (
58- bool (shutil .which ("sbatch" ))
59- and metafunc .config .getoption ("psij" ) == "slurm"
60- ):
61- Plugins .remove ("slurm" )
51+ Plugins = ["psij-" + metafunc .config .getoption ("psij" )]
6252 except ValueError :
6353 pass
6454 metafunc .parametrize ("plugin" , Plugins )
@@ -77,12 +67,7 @@ def pytest_generate_tests(metafunc):
7767 Plugins = ["cf" ]
7868 try :
7969 if metafunc .config .getoption ("psij" ):
80- Plugins .append ("psij-" + metafunc .config .getoption ("psij" ))
81- if (
82- bool (shutil .which ("sbatch" ))
83- and metafunc .config .getoption ("psij" ) == "slurm"
84- ):
85- Plugins .remove ("slurm" )
70+ Plugins = ["psij-" + metafunc .config .getoption ("psij" )]
8671 except ValueError :
8772 pass
8873 metafunc .parametrize ("plugin_parallel" , Plugins )
0 commit comments