Skip to content

Commit

Permalink
Fix --[no]-slurm-export-env option for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
BerengerBerthoul committed May 27, 2024
1 parent 3036a8d commit ac63c3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_parallel/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ def pytest_addoption(parser):
if sys.version_info >= (3,9):
parser.addoption('--slurm-export-env', dest='slurm_export_env', action=argparse.BooleanOptionalAction, default=True)
else:
parser.addoption('--slurm-export-env', dest='slurm_export_env', action='store_true')
parser.addoption('--slurm-export-env', dest='slurm_export_env', default=False, action='store_true')
parser.addoption('--no-slurm-export-env', dest='slurm_export_env', action='store_false')
parser.set_defaults(slurm_export_env=True)

parser.addoption('--detach', dest='detach', action='store_true', help='Detach SLURM jobs: do not send reports to the scheduling process (useful to launch slurm job.sh separately)')

Expand Down

0 comments on commit ac63c3c

Please sign in to comment.