Skip to content

Commit f3b7746

Browse files
t20100consideRatio
authored andcommitted
Fix #SBATCH regexp
1 parent f23a984 commit f3b7746

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

batchspawner/tests/test_spawners.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,11 @@ async def test_slurm(db, event_loop):
476476
re.compile(
477477
r"PROLOGUE.*srun batchspawner-singleuser singleuser_command.*EPILOGUE", re.S
478478
),
479-
re.compile(r"^#SBATCH \s+ --cpus-per-task=5", re.X | re.M),
480-
re.compile(r"^#SBATCH \s+ --time=3-05:10:10", re.X | re.M),
481-
re.compile(r"^#SBATCH \s+ some_option_asdf", re.X | re.M),
482-
re.compile(r"^#SBATCH \s+ --reservation=RES123", re.X | re.M),
483-
re.compile(r"^#SBATCH \s+ --gres=GRES123", re.X | re.M),
479+
re.compile(r"^\#SBATCH \s+ --cpus-per-task=5", re.X | re.M),
480+
re.compile(r"^\#SBATCH \s+ --time=3-05:10:10", re.X | re.M),
481+
re.compile(r"^\#SBATCH \s+ some_option_asdf", re.X | re.M),
482+
re.compile(r"^\#SBATCH \s+ --reservation=RES123", re.X | re.M),
483+
re.compile(r"^\#SBATCH \s+ --gres=GRES123", re.X | re.M),
484484
]
485485
from .. import SlurmSpawner
486486

0 commit comments

Comments
 (0)