Skip to content

Commit a848d70

Browse files
minor, tracepath portability
tracepath utility does not have a '-4' option on older versions, so remove it since it is the default anyway
1 parent 6302bee commit a848d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_parallel/utils/socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _get_my_ip_address():
4242
hostname = socket.gethostname()
4343

4444
assert command_exists('tracepath'), 'pytest_parallel SLURM scheduler: command `tracepath` is not available'
45-
cmd = ['tracepath','-4','-n',hostname]
45+
cmd = ['tracepath','-n',hostname]
4646
r = subprocess.run(cmd, stdout=subprocess.PIPE)
4747
assert r.returncode==0, f'pytest_parallel SLURM scheduler: error running command `{" ".join(cmd)}`'
4848
ips = r.stdout.decode("utf-8")

0 commit comments

Comments
 (0)