Skip to content

Commit 0dd1af2

Browse files
Test failing from .resolve() when TE is installend in a venv (#3094)
removing .resolve() Signed-off-by: Francesco Bertolotti <francesco.bertolotti@igenius.ai>
1 parent 15b92f2 commit 0dd1af2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/pytorch/distributed/test_cast_master_weights_to_fp8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def run_parallel_nvfp4_partial_cast_test() -> None:
995995
@pytest.mark.parametrize("world_size", [2])
996996
def test_cast_master_weights_to_fp8(world_size: int) -> None:
997997
"""Launch parallel job that runs parallel tests"""
998-
python_exe = pathlib.Path(sys.executable).resolve()
998+
python_exe = pathlib.Path(sys.executable)
999999
current_file = pathlib.Path(__file__).resolve()
10001000
command = [
10011001
python_exe,
@@ -1200,7 +1200,7 @@ def test_nvfp4_partial_cast_matches_full(world_size: int) -> None:
12001200
if not available:
12011201
pytest.skip(reason)
12021202

1203-
python_exe = pathlib.Path(sys.executable).resolve()
1203+
python_exe = pathlib.Path(sys.executable)
12041204
current_file = pathlib.Path(__file__).resolve()
12051205
command = [
12061206
python_exe,

tests/pytorch/distributed/test_fusible_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def run_parallel_tests() -> None:
10421042
@pytest.mark.parametrize("world_size", _world_sizes)
10431043
def test_distributed_fuser_ops(world_size: int) -> None:
10441044
"""Launch parallel job that runs parallel tests"""
1045-
python_exe = pathlib.Path(sys.executable).resolve()
1045+
python_exe = pathlib.Path(sys.executable)
10461046
current_file = pathlib.Path(__file__).resolve()
10471047
command = [
10481048
python_exe,

tests/pytorch/distributed/test_fusible_ops_with_userbuffers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def test_fuser_ops_with_userbuffers(
439439
# Parallel job launcher
440440
command = []
441441
if tex.ubuf_built_with_mpi():
442-
python_exe = pathlib.Path(sys.executable).resolve()
442+
python_exe = pathlib.Path(sys.executable)
443443
command.extend(("mpirun", "-np", str(world_size), "--oversubscribe", "--quiet", python_exe))
444444
else:
445445
command.extend(("torchrun", f"--nproc_per_node={world_size}"))

0 commit comments

Comments
 (0)