@@ -72,25 +72,23 @@ def test_xpu_platform_windows_with_torch_only(monkeypatch):
7272 monkeypatch .setattr ("torchruntime.installer.os_name" , "Windows" )
7373 packages = ["torch" ]
7474 result = get_install_commands ("xpu" , packages )
75- expected_url = "https://download.pytorch.org/whl/test/ xpu"
75+ expected_url = "https://download.pytorch.org/whl/xpu"
7676 assert result == [packages + ["--index-url" , expected_url ]]
7777
7878
79- def test_xpu_platform_windows_with_torchvision (monkeypatch , capsys ):
79+ def test_xpu_platform_windows_with_torchvision (monkeypatch ):
8080 monkeypatch .setattr ("torchruntime.installer.os_name" , "Windows" )
8181 packages = ["torch" , "torchvision" ]
8282 result = get_install_commands ("xpu" , packages )
83- expected_url = "https://download.pytorch.org/whl/nightly/ xpu"
83+ expected_url = "https://download.pytorch.org/whl/xpu"
8484 assert result == [packages + ["--index-url" , expected_url ]]
85- captured = capsys .readouterr ()
86- assert "[WARNING]" in captured .out
8785
8886
8987def test_xpu_platform_linux (monkeypatch ):
9088 monkeypatch .setattr ("torchruntime.installer.os_name" , "Linux" )
9189 packages = ["torch" , "torchvision" ]
9290 result = get_install_commands ("xpu" , packages )
93- expected_url = "https://download.pytorch.org/whl/test/ xpu"
91+ expected_url = "https://download.pytorch.org/whl/xpu"
9492 triton_index_url = "https://download.pytorch.org/whl"
9593 assert result == [
9694 packages + ["--index-url" , expected_url ],
0 commit comments