Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

No-deps pair test: start PowerShell through the shared runner (#16533)

Daniel Han07b323fad6d1
diff --git a/tests/python/test_desktop_unsloth_spec_no_deps_pair.py b/tests/python/test_desktop_unsloth_spec_no_deps_pair.py
index f8820a78f4e..df9240adfef 100644
--- a/tests/python/test_desktop_unsloth_spec_no_deps_pair.py
+++ b/tests/python/test_desktop_unsloth_spec_no_deps_pair.py
@@ -20,6 +20,7 @@ STUDIO_DIR = Path(__file__).resolve().parents[2] / "studio"
sys.path.insert(0, str(STUDIO_DIR))
import install_python_stack as ips # noqa: E402
+from unsloth_pwsh_runner import run_pwsh # noqa: E402
pytestmark = pytest.mark.skipif(shutil.which("uv") is None, reason = "needs uv")
@@ -172,7 +173,8 @@ def installer_pair(request, tmp_path, monkeypatch):
)
argv = [shell, "-NoProfile", "-File", str(script)]
env = dict(os.environ, PATH = str(tmp_path / "empty-path")) if selected_uv else None
- result = subprocess.run(argv, capture_output = True, text = True, timeout = 180, env = env)
+ run = run_pwsh if request.param == "powershell" else subprocess.run
+ result = run(argv, capture_output = True, text = True, timeout = 180, env = env)
if result.returncode:
raise RuntimeError(result.stderr)
return tuple(result.stdout.strip().splitlines()[-2:])