Skip to content

The agent that grows with you

test(install): expect the arch-qualified bootstrap Python request

ethernet4aadff7bd68b
diff --git a/tests/scripts/install/test_install_ps1_managed_python_provenance.py b/tests/scripts/install/test_install_ps1_managed_python_provenance.py
index 925754eb1e1..07aeffd4e60 100644
--- a/tests/scripts/install/test_install_ps1_managed_python_provenance.py
+++ b/tests/scripts/install/test_install_ps1_managed_python_provenance.py
@@ -64,8 +64,13 @@ exit $LASTEXITCODE
cwd=tmp_path, env=env, stdin=subprocess.DEVNULL,
capture_output=True, text=True, timeout=120)
assert (run.returncode == 0) == (exit_code == 0), run.stdout + run.stderr
+ from hermes_platform.host.facts import native_arch
+
+ # The request names the machine's architecture: a bare version lets uv
+ # pick an emulated x86_64 build on Windows-on-ARM.
+ uv_arch = "aarch64" if native_arch() == "arm64" else "x86_64"
assert [json.loads(line) for line in log.read_text(encoding="utf-8-sig").splitlines()] == [
- ["python", "find", "--managed-python", "--no-project", "3.12"],
+ ["python", "find", "--managed-python", "--no-project", f"cpython-3.12-windows-{uv_arch}-none"],
]
if stage == "python-deps":
assert json.loads(pm_log.read_text(encoding="utf-8-sig")) == ["install"]