Skip to content

Commit 5ed2e2c

Browse files
committed
Simplified condition
1 parent 737ad61 commit 5ed2e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def _discover_environment(config):
420420
logger.warning('Cannot get git repository information.')
421421
try:
422422
env['has_slurm'] = shutil.which('sbatch') is not None
423-
if 'has_slurm' not in env or not env['has_slurm']:
423+
if not env['has_slurm']:
424424
env['has_pbs'] = shutil.which('qsub') is not None
425425
env['has_lsf'] = shutil.which('bsub') is not None
426426
env['has_cobalt'] = shutil.which('cqsub') is not None

0 commit comments

Comments
 (0)