Browse Source

test(distributed): replace python command in subprocess with `sys.executable`

GitOrigin-RevId: 1f4262fd0c
tags/v0.5.0
Megvii Engine Team 5 years ago
parent
commit
dd8f3ffc4d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      python_module/test/integration/test_distributed.py

+ 1
- 1
python_module/test/integration/test_distributed.py View File

@@ -67,7 +67,7 @@ def start_workers(worker, world_size, trace=False):
cmd += "worker('localhost', 3456, {}, {}, {}, {})".format(
world_size, rank, rank, "True" if trace else "False"
)
cmd = ["python3", "-c", cmd]
cmd = [sys.executable, "-c", cmd]
ret = subprocess.run(
cmd, stdout=sys.stdout, stderr=sys.stderr, universal_newlines=True
)


Loading…
Cancel
Save