Skip to content

Commit 78b0f90

Browse files
committed
test
1 parent 62ee6f3 commit 78b0f90

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

scripts/install_torch_xla.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ def main(python_version: str, xla_version: str) -> None:
1010
temp_dir = Path(tempfile.mkdtemp()) / "torch_xla"
1111
temp_dir.mkdir(parents=True, exist_ok=True)
1212
pyver = python_version.replace(".", "")
13-
url = f"https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-{xla_version}-cp{pyver}-cp{pyver}-linux_x86_64.whl"
13+
url = f"https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-{xla_version}"
1414
suffix = f"-cp{pyver}-cp{pyver}-linux_x86_64.whl"
15-
r = urlopen(url)
15+
r = urlopen(url + suffix)
1616
wheel_path = temp_dir / "torch_xla.zip"
1717

1818
with open(wheel_path, "b+w") as f:
@@ -24,7 +24,7 @@ def main(python_version: str, xla_version: str) -> None:
2424
dist = [p for p in os.listdir(temp_dir) if "dist-info" in p]
2525
if dist:
2626
pkg_name = dist[0].split(".dist-info")[0]
27-
wheel_path = wheel_path.rename(f"{pkg_name}{suffix}")
27+
wheel_path = wheel_path.rename(temp_dir / f"{pkg_name}{suffix}")
2828
cmd = ["uv", "pip", "install", str(wheel_path)]
2929
os.system(" ".join(cmd))
3030

tests/ignite/handlers/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import subprocess
22
import time
3-
import traceback
43
from pathlib import Path
54
from unittest.mock import Mock
65

@@ -29,9 +28,7 @@ def visdom_server():
2928
time.sleep(1)
3029
vis = Visdom(server=vd_hostname, port=vd_port, raise_exceptions=True)
3130
break
32-
except ConnectionError as e:
33-
print(f"Visdom server not ready yet, retrying {ii + 1}/5", e)
34-
traceback.print_exc()
31+
except ConnectionError:
3532
continue
3633

3734
assert vis and vis.check_connection()

0 commit comments

Comments
 (0)